Lets start here:
So I code, tentativly....
Method 'methods' not found for invocant of class ''
in Main (file src\gen_setting.pm, line 295)
And there lie the daemons... The perl6 ghost docs. Lets try to find something more up to date...
One of the memories of potentially relevant browsing I have is this fella - Jonathan Worthingtons fine work on Signature Introspection And here is a funny thing - anchors are wonderfull, wonderfull things - and delightfully cross discipline. I now recall meta... meta class...
Pause to contemplate. maybe google "rakudo
And back to meta... Apocalypse 12 is about objects and contains some examples:
MyClass.meta.getmethods() # get the method list of MyClass
It may well be that my rakudo does not yet have the features. Lets get a more recent version.
I start by cloning git://github.com/rakudo/rakudo.git - and trying to install with the --gen-parrot option - unfortunately as I didn't get around to installing subversion - a visit to http://subversion.tigris.org/ should fix that - I end up pumping for Silk Svn - an svn client for windows.
Now I should have tested this before but the signature introspection is now working, unfortunately it looks like meta isn't ( as yet )...
Name: $x, Type: Int(), Optional: 0
Name: $y, Type: Str(), Optional: 1
Now lets not give up there - a quick visit of the test suite for perl6 introspection provides an interesting syntax:
@methods = B.^methods(:local);
Lets give that a go... A slight change to test.pl is all that is needed.
And a short perl6 test.pl later....
TestRole() Has the following methods:
A small, small step. This elephant is going to take a while nibbling at this pace.