Litteral arrays parsing

Noury Bouraqadi bouraqadi at ensm-douai.fr
Tue May 23 23:56:01 UTC 2006


Le 23 mai 06, à 19:51, nicolas cellier a écrit :

> Le Mardi 23 Mai 2006 16:42, Noury Bouraqadi a écrit :
>> Hi,
>>
>> A stupid question, why evaluating
>> #("comment") leads to an empty array instead of an array with a single
>> element #'"comment"'?
>>
>
> Isn't it a good thing, this ability to insert comment inside long 
> literal
> arrays ?
>
> stupidExample := #(
>     "keys are stored in first sub array"
>         #( 'one' 'two' 'three')
>     "values are stored in second sub array"
>         #(1 2 3)
> ).
>
Yes. You're right. This is a good reason.



>  Maybe a second # in Dolphin Smalltalk extension...
>
>
What is this?

I read somewhere in the Squeak Scanner code that ##() may be given the 
Ansi Smalltalk semantics without further explanation. Any hint?


Noury
--------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
Ecole des Mines de Douai - Dept. G.I.P
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org

Squeak: an Open Source Smalltalk
http://www.squeak.org
--------------------------------------------------------------





More information about the Squeak-dev mailing list