tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

fixed some simple bug in variant.dt #168

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

namespace was forgotten,

porky11 commented 7 years ago

I also added, that the main struct will be declared before the sub-structs are declared, so it's possible to do something like this:

(def-variant List ((Cons ((a (p List)) (b (p List))))
                    Null))

Following is still not possible, (and won't be, since it would result in a infinite struct):

(def-variant List ((Cons ((a List) (b List)))
                    Null))
tomhrr commented 7 years ago

Thanks, looks good.