how to get arg and print on the output
Alejandro F. Reimondo
aleReimondo at smalltalking.net
Mon Aug 21 17:27:15 UTC 2006
> > KernelPackage import: Point.
> or
> Point from: KernelPackage
really? or it must be:
KernelPackage import: #Point
because the object named Point does
not exist in the context, yet...
If objects KernelPackage and
Point are already bound, what does
the #import: mean?
If the meaning of #import: is to
bind an object to a name in a context,
I prefer the message to be sent to the
bounding environment or to the source
space (KernelPackage) to solve the
binding action.
best,
Ale
----- Original Message -----
From: "stéphane ducasse" <ducasse at iam.unibe.ch>
To: "The general-purpose Squeak developers list"
<squeak-dev at lists.squeakfoundation.org>
Sent: Monday, August 21, 2006 1:25 PM
Subject: Re: how to get arg and print on the output
> Yeap I like the one of pepsi (in fact I really like the { } for C),
> this is really excellent.
> but for Smalltalk I prefer that one that is closer to Smalltalk one.
>
> > KernelPackage
> > import: Point.
>
> or
> Point from: KernelPackage
>
> >
> > Package declare: 'ColoredPointPackage'.
> >
> > Point < ColoredPpoint
> > variables: 'x y' ;
> > classvar: 'Foo'
> >
> > ColoredPoint>>foo: zork
> > [ <category: 'foobar'>
> >
> >> <author: 'sd' date: '24/06/2006'>
> >>
> > ljkljl
> > ^ self
> > ]
> >
>
> ColoredPoint class>> new
> [ ^ self basicNew ]
>
>
>
>
More information about the Squeak-dev
mailing list
|