February 05, 2012 Function returning pointer to itself | ||||
---|---|---|---|---|
| ||||
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? |
February 05, 2012 Re: Function returning pointer to itself | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tobias Pankrath | 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? > |
Copyright © 1999-2021 by the D Language Foundation