Pulled from the archive at Leo's request (thanks Leo).
Leopold Toetsch wrote:
It originated in a perl5-ism in the first array implementations, following the
perl-way:
$elems = scalar @array;
which was directly translated to:
set I0, P0
This works at least for "small" arrays.
The prob
In PIR language, I create a new class 'thread' by subclassing
'Parrot::Coroutine'.
And I want write a method '__add' for support the opcode 'add'.
But, I can't found the correct syntax.
Is it possible to mix :method and :multi ?
# languages/lua/lib/thread.pir extract
.namespace [ 'Lua' ]
.sub