anyone knows how to reify a const string as a type parameter (using a variable) during a macro class creation? (not sure it's possible syntactically).
I would like to do something like:
macro class Bar {
..
function myMeth() : Foo<$cstringName>
...
}
Instead of building it by myself like :
var myType = TPath({
name : "Foo",
pack : [],
params : [
TPExpr({
expr : EConst(CString(cstringName)), pos : cpos
}),
]
});
macro class Bar {
..
function myMeth() : $myType
...
}
Morph being of the form:
class Foo<Const> {
...
}
Thanks in advance,
Stephane