Calling function within class.

frame frame86 at live.com
Wed Nov 18 16:53:44 UTC 2020


On Wednesday, 18 November 2020 at 15:01:53 UTC, Vino wrote:
> Hi All,
>
>   Request your help on how to call a function(listFile) from 
> another function(getFilelist) within the same 
> class(GetDirlist), below is an example code.

I think it's basically the same issue like that recently opened 
topic:

https://forum.dlang.org/thread/ddxasuvusgibppcclsop@forum.dlang.org

You need to pass your class object as argument to a static method 
or anonymous function.



More information about the Digitalmars-d-learn mailing list