Re: Not able to load classes defined in archive file in Mac OSX using Object.factory

2018-11-16 Thread Aditya via Digitalmars-d-learn
On Friday, 16 November 2018 at 14:30:02 UTC, Adam D. Ruppe wrote: PS object.factory sucks and I hope it is removed some day. There's no plan to do so, but I still wouldn't actually rely on it... instead, I'd write your own factory function and registration system, so you control it and will

Re: Not able to load classes defined in archive file in Mac OSX using Object.factory

2018-11-16 Thread Aditya via Digitalmars-d-learn
On Friday, 16 November 2018 at 14:28:22 UTC, Adam D. Ruppe wrote: On Friday, 16 November 2018 at 14:24:10 UTC, Aditya wrote: ./ss/Stat.d (defines interface named 'Stat') ./ss/Min.d (defines class named 'Min' that implements Stat) Did you put a module declaration at the top of those files?

Not able to load classes defined in archive file in Mac OSX using Object.factory

2018-11-16 Thread Aditya via Digitalmars-d-learn
Hello ! I am trying to work out "The D programming Language" chapter 1.6 problem on Interfaces and Classes. folder ./stats.d(takes argument "Min/Max" on command line and loads them) ./ss/Stat.d (defines interface named 'Stat') ./ss/Min.d (defines class named 'Min' that implements