develooper Front page | perl.perl6.internals | Postings from February 2002

[parrot] tostring / array

Thread Next
From:
Gerson.Kurz
Date:
February 18, 2002 06:57
Subject:
[parrot] tostring / array
Message ID:
CLEFLIBFLLLHJNOKPNGFCEFNCDAA.Gerson.Kurz@t-online.de
Parrot seems to work fine. It sure looks a lot nicer than the .NET assembly
language (even though I miss my Motorola 680x0 style syntax ;)

However, it seems that

	tostring Sx, ty, Iz

isn't imlpemented yet (besides, I wouldn't know what "string type" to
specify ?). Its not used in the t/op/string.t test script, either. And a
grep -r says its used only in the documentation. Is my understanding correct
that this would be used to convert, say, the integer 97 to string "a"? Or
are there other more suitable data conversion opcodes?

I don't quite understand all concepts, for example I'm missing data
declarations (at least none of the examples use any); all registers have
explicit initializers. (so, no

label: dc.l 42
	dc.b "test1234",0
      blk.b 512,0xff

etc.)

Also, Arrays seem to be not really available. The test script says

t/pmc/array.........ok, 1/1 skipped: Wait until this works
t/pmc/perlarray.....ok, 5/5 skipped: Arrays need a little rejigging

which seems to confirm this.

Unfortunately, for what I have in mind I would need both data in arrays, and
int->string (not! itoa; just a simple cast).

So next I took a look at the source; arrays are implemented in
classes/array.pmc which is used to generate classes/array.c. Can you please
tell me if someone is working on that, and if not, maybe some ideas on what
is missing to make arrays usefull in parrot? (Because, after all, array.pmc
doesn't seem to be a mere stub)

Thanks, Gerson





Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About