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

assembler key syntax behaviour

Thread Next
From:
Josef Höök
Date:
July 16, 2002 03:00
Subject:
assembler key syntax behaviour
Message ID:
Pine.GSO.4.21.0207161142510.15053-100000@chicken.stacken.kth.se
I have a couple of question regarding using keyed access in assembler.
Lets say we create an Perlarray:

new P0, .PerlArray
set P0,5 

Array with size 5. 
assembler.pl will call set_p_ic  ( ?  maybe im wrong here )

But what about setting size on multdimensional PMC's would it also be:

set P0,5,5,5 

assembler.pl would try to call 
set_p_ic_ic_ic  

This will break things when having N dimensions..
I dont know if im missing something but wouldnt it be better to use KEY
structures when assigning sizes on PMC's eg:

set P0[5][5][5]

This would handle multidim's also wouldnt it be nice if we could do

new P0, .PerlArray[10]

Just some thoughts...

/Josef




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