Re: A couple easy questions...

2003-02-25 Thread David
Leon Brocard wrote: > You'd be wanting "typeof". Thanks. > ps i fixed your code Thanks again. :-) Anyone know about a Parrot Windows binary? -- David Cuny

Re: A couple easy questions...

2003-02-25 Thread David
Leopold Toetsch wrote: > From docs/core_ops.pod (built from core.ops): Thanks. I better upgrade my version, I'm not seeing it in 0.0.9. -- David Cuny

Re: A couple easy questions...

2003-02-25 Thread Leopold Toetsch
David wrote: How do you determine the datatype of a PMC? For example, if I create the following array: From docs/core_ops.pod (built from core.ops): =item B(out STR, in PMC) =item B(out INT, in PMC) Return the type of PMC in $2. The String result is the class name, the int result is the enu

Re: A couple easy questions...

2003-02-25 Thread Leon Brocard
David sent the following bits through the ether: > how can I test to determine the datatype of the object in P1? You'd be wanting "typeof". The following prints out "PerlString", for example: new P0, .PerlArray set P0[1], "cat" set P0[2], 123 set P0[3], 456.789

A couple easy questions...

2003-02-25 Thread David
How do you determine the datatype of a PMC? For example, if I create the following array: new P0, .PerlArray set P0[1], "cat" set P0[2], 123 set P0[3], 456.789 and then grab a value from the array: set P1, P2[1] how can I test to determine the datatype o