www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Function returning pointer to itself

reply Tobias Pankrath <tobias pankrath.net> writes:
Is there any better way to write a function that can return a pointer to 
itself than returning void* and cast at call site to the appropiate type?
Feb 05 2012
parent "Daniel Murphy" <yebblies nospamgmail.com> writes:
Return a struct containing a function pointer.

"Tobias Pankrath" <tobias pankrath.net> wrote in message 
news:jglvvq$7jr$1 digitalmars.com...
 Is there any better way to write a function that can return a pointer to
 itself than returning void* and cast at call site to the appropiate type?
 
Feb 05 2012