Am Dienstag, 10. Oktober 2006 20:41 schrieb chromatic: > Hi all, > > Here's an experiment I worked on yesterday to make creating objects a > little easier from PIR.
For reference: Subject: PMC and object creation http://groups.google.de/group/perl.perl6.internals/browse_frm/thread/e68dc0a0a96585b7/462023a5939b0844?lnk=st&q=toetsch++new+opcodes&rnum=30#462023a5939b0844 PS: the examples are w/o syntactic sugar support for making the 'new/instantiate' thingy any nicer. It's just an experiment how it could work. The basics are: it combines all the flexible argument passing features we already have with object instantiation. PPS: new opcode variant count is 20 now. I can imagine that we just have these: new P0, .Class # plain form new P0, .Class, <args> new P0, [class], <args> leo