symmetryinvestments / autowrap

Wrap existing D code for use in Python, Excel, C#
BSD 3-Clause "New" or "Revised" License
80 stars 16 forks source link

AutoWrap cannot wrap Nullable!Date from Phobos library #256

Closed imzhaodong closed 4 years ago

imzhaodong commented 4 years ago

Nullable!Date cannot be wrapped. Nullable and Date are all from Phobos library so this looks a autowrap bug. Basically below simple code cannot be wrapped by autowrap, cause loading symbol error when load it into Python.

export struct Hack61
{
    import std.typecons : Nullable;
    import std.datetime : Date;
    Date m1; //OK
    Nullable!int m2; //OK
    Nullable!Date m3; //not OK
}