From: owner-smallwiki(a)iam.unibe.ch
[mailto:owner-smallwiki@iam.unibe.ch]
On Behalf Of Lukas Renggli
when porting SmallWiki 0.9.19 to squeak I have
found some points that
could eventually be solved better.
- #displayString should be #asString ?!?
as far as I know #displayString and #printString are ANSI standard, but
not #asString, e.g. in VisualWorks there is no #asString. The Purple
Book only describes #displayString and #printString too.
Only #printString is ANSI. I just added a #displayString on Object when I
ported to #Smalltalk.
-
#internal_templates contains $_
Indeed, this is not portable at all. #'internal_templates' should work,
but this looks ugly. What I did here was to prefix with some special
string to avoid conflicts with user-defined properties. The next time I
publish an updated version it will be renamed to #internalTemplate.
This is ANSI. The ANSI standard has:
identifier ::= letter (letter | digit)*
letter ::=
uppercaseAlphabetic |
lowercaseAlphabetic |
nonCaseLetter |
"implementation defined letters"
nonCaseLetter ::= '_'
This means that your selectors can have _'s in them. Of course, just because
something is ANSI, doesn't mean that it is portable...
John Brant