wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Allow definition of data structures, objectives etc. in other compilation units #47

Closed riedelcastro closed 9 years ago

riedelcastro commented 10 years ago

Currently all information needs to be in the same compilation unit to be useful for macro expansion. This should be more general.

One step could be to use the type information on case classes instead of the definition of the case class in the enclosing unit.

riedelcastro commented 10 years ago

We now support case class definitions defined elsewhere. I think for 0.1 is reasonable to require the code to be analyzed in the same compilation unit. We leave this open, but remove it from 0.1