Object.factory fails for static libraries

Andre Pany via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 5 01:40:18 PDT 2016


On Saturday, 4 June 2016 at 16:12:04 UTC, Andre Pany wrote:
> Hi,
>
> I try to create objects by using the factory method in a static 
> library scenario.
>
> ...
> My windows batch file looks like this:
> dmd base -lib
> dmd child -lib base.lib
> dmd main base.lib child.lib
> main
> PAUSE
>
> All assertions fails. Should this work, or is this a restriction
> of object.factory?
>
> Kind regards
> André

I just validated, the same issue also occurs on ubuntu linux with 
the recent dmd compiler.
The api for Object.factory does neither say whether this should 
work or not.

Kind regards
André


More information about the Digitalmars-d-learn mailing list