[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Symbols in array literals
From: |
Mike Anderson |
Subject: |
[Help-smalltalk] Symbols in array literals |
Date: |
Fri, 23 Feb 2007 21:43:37 +0000 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061025) |
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] Symbols in array literals,
Mike Anderson <=