how to get arg and print on the output
stéphane ducasse
ducasse at iam.unibe.ch
Mon Aug 21 19:03:32 UTC 2006
On 21 août 06, at 19:27, Alejandro F. Reimondo wrote:
>>> 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...
Yes!
> If objects KernelPackage and
> Point are already bound, what does
> the #import: mean?
True!!!
> 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.
100% correct
>
> 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
|