need help about get all public static function name
test
test at gmail.com
Mon Oct 22 12:32:57 UTC 2018
On Monday, 22 October 2018 at 12:16:50 UTC, Stanislav Blinov
wrote:
> On Monday, 22 October 2018 at 12:03:22 UTC, test wrote:
> You're trying to call a static function 'getThis' on Fiber.
> The type 'Fiber' is really a Proxy!FiberS. Proxy doesn't have a
> static getThis() function. So the compiler tries an 'alias
> this', which forwards to a non-static member function
> getPayload(). To call that function, you need an instance of
> 'Proxy', which you don't have.
> I guess the first error message ("this for getPayload needs to
> be type Proxy not type TcpStream") just doesn't report that
> clearly.
But this work:
> extern(C) void main(){
> auto id = Fiber.getThis(); // work here
> }
here also dont have Fiber instance.
More information about the Digitalmars-d-learn
mailing list