[self-interest] A few questions from a smalltalker

Russell Allen mail at russell-allen.com
Wed Oct 26 23:19:41 UTC 2011


On Wed, 26 Oct 2011 09:42:01 +0200, Bernat Romagosa wrote:
> Hi guys,
>
> Thanks a lot for the replies! I'm using the Self-Latest-Unstable
> snapshot on a Debian machine.

Cool, thanks.

> The leap from st to Self is quite bigger than I expected, but I think
> I'm beginning to "get it" hehe
>
> Another question: do you guys have some kind of public repo where I
> can check out some projects to get a grasp of what real-world stuff
> looks like?

Pretty much all of the stuff is in the Github tree. If you look under 
self/objects/applications you will see various projects but not all of 
them will be easy to load. You may be able to get the 4.4 Demo.snap from 
the website to work, it has the Smalltalk-80 subsystem and some 
tutorials loaded.

To import a Self file either do

'path/to/my/module.self' runScript

or, if your current directory is the objects directory, something like:

bootstrap read: 'module' From: 'applications'

I'm afraid you will have to put up with rough edges to all this until 
we get them smoothed over in future releases :)

Cheers, Russell


>
> Cheers!
>
>  2011/10/26 Russell Allen
>
>>  
>>
>> On Tue, 25 Oct 2011 11:23:02 -0700, David Ungar wrote:
>> > * CAN YOU PRINT STUFF?
>>
>> > I noticed that shells can both DoIt and GetIt stuff, but not
>> PrintIt.
>> > Does this respond to some design principle?
>> >
>> > You can print by getting the string of something but it isn't as
>> >> common an idiom as you can get a manipulable reference to the
>> > object
>> >> itself just as easily. You can always ask an object for it's
>> >> symbolic form, but it needs the behavior to return that. Since
>> > there
>> >> is no base Object class, there is no guarantee suck a method
>> > exists.
>> >>
>> >>
>> >> Yes. You can send printString or print to many objects.
>>
>> Hi Bernat!
>>
>> Sending print or printLine to many objects will print to stdout.
>>
>> If you have started Self from the command line on Linux or Mac
>> then
>> you'll see it in the terminal you started Self from. If you've
>> started
>> Self on Mac by double-clicking a snapshot, then it will probably
>> disappear into the ether and you're better off using GetIt.
>>
>> May I ask which platform and what snapshot you're using?
>>
>> - Russell
>
> --
> Bernat Romagosa.





More information about the Self-interest mailing list