Tag issues
~I think it would be good to have a list of tags of the field at compile time when iterating over Foo.membersof~ So i guess the issue is to return list of methods_ref instead of char[]?
Right now it works like that: $foreach($a : Foo.membersof) io::printn($a.has_tagof("foo")); // false $endforeach io::printn(Foo.baz.has_tagof("foo")); // true
Find my problem, i've used membersof instead methodsof Right now methodsof returns the list of strings, and because of that i can't check the tag in the method Error: There is no member or method 'has_tagof' on 'char[]'
So i guess the issue is to return list of methods_ref instead of char[]?
Find a way to bypass this Example from my code
$foreach($method : $typeof(*self).methodsof)
$if $typeof(*self).$eval($method).has_tagof("controller"):
add_route($typeof(*self).$eval($method).tagof("controller"), &$typeof(*self).$eval($method));
$endif
$endforeach
Yes, you can create a convenience macro to convert from name => ident if you want.
Can we perhaps close this one?