help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: Symbols in array literals


From: nicolas cellier
Subject: [Help-smalltalk] Re: Symbols in array literals
Date: Fri, 23 Feb 2007 23:40:04 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

 #( Yes in VW too ( hehe ) )

Once upon a time in older st80 we had:

 #( nil ) first notNil

Nowadays st80 stiil do not require literal quotes inside literal quote array but for #(#true #false #nil).

Nicolas


Mike Anderson a écrit :
I would really like to be able to dispense with the # in front of
symbols in array literals. In other words, I would like the following to
be valid:

#(1 two nil)

I think that Squeak accepts this, and I notice that the STInST compiler
does too. How about it?

Mike


------------------------------------------------------------------------

--- ../smalltalk-2.3.1/libgst/gst-parse.c       2006-02-05 18:41:34.000000000 
+0000
+++ libgst/gst-parse.c  2007-02-23 21:23:18.000000000 +0000
@@ -832,10 +832,7 @@
     node = _gst_make_oop_constant (&loc, _gst_nil_oop);
else
-    {
-      _gst_errorf ("expected true, false or nil");
-      recover_error (p);
-    }
+    node = _gst_make_oop_constant (&loc, symbolOOP);
lex (p);
   return node;


------------------------------------------------------------------------

_______________________________________________
help-smalltalk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-smalltalk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]