[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Sending a method 'nil'.. generates an error
From: |
Rick Flower |
Subject: |
[Help-smalltalk] Sending a method 'nil'.. generates an error |
Date: |
Thu, 17 Jun 2010 17:36:53 -0700 |
User-agent: |
RoundCube Webmail/0.2.1 |
I'm porting some code to generate RTF's from a set of
code I found for Squeak.. It converted OK but when I
run it I get this from gst :
gst ./source.gst
"Global garbage collection... done"
Loading package SUnit
./source.gst:4075: sending `nil', most likely you forgot a period
The method in question is this :
default [
"set the receiver with the default format."
<category: 'settings'>
^self nil
]
...
nil [
"Set the receiver with this format"
<category: 'settings'>
^self name: 'nil'
]
Aside from renaming the 'nil' method to something
else (e.g. nile), is there a way to keep gst happy
with this code?
- [Help-smalltalk] Sending a method 'nil'.. generates an error,
Rick Flower <=