[Pharo-project] [ENH] Literal Byte Arrays

Lukas Renggli renggli at gmail.com
Fri Jan 30 04:55:19 EST 2009


> so do I understand correctly that your point is to replace
>        asByteArray by #[]

Yes, instead of writing

    #( 1 2 3 ) asByteArray

you write

    #[ 1 2 3 ]

Which is much faster and saves memory, as no conversion and no copying
happens at runtime. All Smalltalk dialects (with the exception of
GemStone) support this syntax. Pharo should have it too.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the Pharo-dev mailing list