(Side note: This mailing list seems very dead lately. Is the LysKOM gateway down?)
I'm trying to make good use of annotations, but all the existing ones are in cmod files, and I'm trying to work out how best to write them in Pike. My goal is to have an annotation that can be parameterized, something like this:
class Anno(string label) { inherit Pike.Annotation; @constant; }
@Anno("foobar"): void some_func() { }
But while this does result in the annotation itself showing up, the label on that annotation doesn't.
What's the intended way to create parameterized annotations?
ChrisA
(Side note: This mailing list seems very dead lately. Is the LysKOM gateway down?)
I believe that it is up.
I'm trying to make good use of annotations, but all the existing ones are in cmod files, and I'm trying to work out how best to write them in Pike. My goal is to have an annotation that can be parameterized, something like this:
class Anno(string label) { inherit Pike.Annotation; @constant; }
@Anno("foobar"): void some_func() { }
The above is supposed to work.
But while this does result in the annotation itself showing up, the label on that annotation doesn't.
Try having the Anno class in a separate file.
What's the intended way to create parameterized annotations?
This seems to be a compiler bug.
/grubba
pike-devel@lists.lysator.liu.se