Hi,
Zach Morgan (via RT) wrote:
hello, all. Attached (hopefully) is a patch to implement get_string for
perl6's junctions. I looked in synopsis 9 and saw nothing about any
get_string, so I decided on the simplest, most straightforward approach.
That looks to me more like an implementation of the .perl method, not
the get_string vtable method. So it's the Right Thing, for the Wrong
Thing. ;-) If you change:
.sub 'get_string' :vtable :method
To:
.sub 'perl' :method
Then that would appear to be a useful patch, which I'll be happy to
apply with that change (don't bother sending a replacement). Also, I
probably won't get to applying this until after the weekend, since I'm
heading to Madrid tomorrow and need to sleep now.
Should say 4&5 call say for both 4 and 5 or just once for the junction?
For both 4 and 5.
At the moment however, it looks for get_string for the junction type. I suspect
that it will at least aid in debugging, at the very least.
The .perl method on Junctions will certainly aid debugging, and is good
to have. So thanks, and I'll do the tweak and apply this shortly.
Take care,
Jonathan