Trouble with ;

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble with ;

Fernando Rodríguez
Hi,

If I eval this expression on a workspace, I get an 'error: yourself
not defined':

|x y z|
x :=  OrderedCollection new addFirst: 1;
                                         addFirst: 3;
                                         addFirst: 45;
                                         yourself

What amI doing wrong? O:-)

Thanks


Reply | Threaded
Open this post in threaded view
|

Re: Trouble with ;

Yar Hwee Boon-3
On Thu, 02 Dec 2004 12:00:34 +0100, Fernando <[hidden email]> wrote:

> If I eval this expression on a workspace, I get an 'error: yourself
> not defined':
>
> |x y z|
> x :=  OrderedCollection new addFirst: 1;
> addFirst: 3;
> addFirst: 45;
> yourself

Did you select all the code?

--
Regards
HweeBoon
MotionObj


Reply | Threaded
Open this post in threaded view
|

Re: Trouble with ;

Fernando Rodríguez
On Thu, 02 Dec 2004 19:16:11 +0800, "Yar Hwee Boon"
<[hidden email]> wrote:

>On Thu, 02 Dec 2004 12:00:34 +0100, Fernando <[hidden email]> wrote:
>
>> If I eval this expression on a workspace, I get an 'error: yourself
>> not defined':
>>
>> |x y z|
>> x :=  OrderedCollection new addFirst: 1;
>> addFirst: 3;
>> addFirst: 45;
>> yourself
>
>Did you select all the code?

Yes. :-?


Reply | Threaded
Open this post in threaded view
|

Re: Trouble with ;

Yar Hwee Boon-3
On Thu, 02 Dec 2004 12:27:47 +0100, Fernando <[hidden email]> wrote:

> On Thu, 02 Dec 2004 19:16:11 +0800, "Yar Hwee Boon"
> <[hidden email]> wrote:
>
>> On Thu, 02 Dec 2004 12:00:34 +0100, Fernando <[hidden email]> wrote:
>>
>>> If I eval this expression on a workspace, I get an 'error: yourself
>>> not defined':
>>>
>>> |x y z|
>>> x :=  OrderedCollection new addFirst: 1;
>>> addFirst: 3;
>>> addFirst: 45;
>>> yourself
>>
>> Did you select all the code?
>
> Yes. :-?

I mean select all 5 lines and then evaluate? BTW, in the workspace, you  
don't need to declare temporary variables. In fact, I suggest you not to  
do it.

--
Regards
HweeBoon
MotionObj