Author: particle
Date: Wed Oct 3 09:25:09 2007
New Revision: 21780
Modified:
branches/pdd15oo/runtime/parrot/library/Parrot/Coroutine.pir
Log:
[library]: one more usage of find_type
Modified: branches/pdd15oo/runtime/parrot/library/Parrot/Coroutine.pir
==============================================================================
--- branches/pdd15oo/runtime/parrot/library/Parrot/Coroutine.pir
(original)
+++ branches/pdd15oo/runtime/parrot/library/Parrot/Coroutine.pir Wed Oct
3 09:25:09 2007
@@ -109,11 +109,9 @@
This method is normally called via the C<new> op:
- .local int coro_class
- coro_class = find_type 'Parrot::Coroutine'
.local pmc coro
.const .Sub coro_sub = "enumerate_tree"
- coro = new coro_class, coro_sub
+ coro = new 'Parrot::Coroutine', coro_sub
Given a sub, it initializes a new C<Parrot::Coroutine> object.