[squeak-dev] [BUG] Parser does not detect syntax error with double colon

Marcel Taeumel marcel.taeumel at hpi.de
Fri Feb 28 13:17:20 UTC 2020


Hi Christoph.

Thanks for pointing this out. This issue has been around for like forever. :-) In Squeak 3.8, however, the list of choices was bigger:



Let's improve this in 6.0alpha :-)

Best,
Marcel

Am 28.02.2020 13:49:03 schrieb Thiede, Christoph <christoph.thiede at student.hpi.uni-potsdam.de>:
Steps to reproduce:
Try doIt thisĀ (for example, in a workspace):
2 raisedTo:: 3.


Expected behavior:
2 raisedTo:"Argument expected ->": 3.


Actual behavior:

If you are thumb enough to choose #raisedTo:: (I was), you get a subsequent error:

Even worse: If you try to doIt the same code snippet again, no parser warning/error will be raised at all but you get a runtime error:
MessageNotUnderstood: SmallInteger>>raisedTo::.


Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200228/0921c64f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9556 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200228/0921c64f/attachment-0001.png>


More information about the Squeak-dev mailing list