Sam Phillips's blog
Accessing Succinctly
There are times when you have code that looks like this:
Object subclass: MyNewClass [
| foo bar baz traz bif |
foo [ ^ foo ]
bar [ ^ bar ]
baz [ ^ baz ]
traz [ ^ traz ]
bif [ ^ bif ]
foo: aFoo [ foo := aFoo ]
traz: aTraz [ traz := aTraz ]
baz: aBaz [ baz := aBaz ]
myMethod [
"Do something with all of those instance variables"
]
]
Symbol >> #numArgs
I have been working on and off for the past couple of years on a Prototype Object language (called Twain) similar to Self in my spare time. I have developed about a dozen partial implementation in Haskell, Scheme, Squeak, Visual Works, GST, Python, C, etc.
The most recent of these has been an interpreter in GST. Since there are a lot of similarities between Smalltalk and my target language, and openness of the class Smalltalk language, I've been able to piggy back on many of the standard Smalltalk classes for the primitive data types.
PackageDir
I've become spoiled with Python's module and package system. So here I give
you a half baked (but mostly working) alternative package loader.
