problem running the tutorial: MessageNotUnderstood: ByteString: >>parent:

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

problem running the tutorial: MessageNotUnderstood: ByteString: >>parent:

ching
Hi,

I am trying to follow the Tutorial and have gotten as far as running the script on a WorkSpace. I tried removing this code from the script aDemoAddress parent: self and there is no error message. However, the Tutorial says it is _handy for something else later on so I don't know what to do next.

Running this Doit on a workspace produces an error:

book _ ADemoAddressBook new.
book
   addAddress: (ADemoAddress newName: 'Sebastjan' surname: 'Dormir' phone: '01/514 33 66' email: '[hidden email]');
   addAddress: (ADemoAddress newName: 'John' surname: 'Newton' phone: '05/555 77 66' email: '[hidden email]');
   addAddress: (ADemoAddress newName: 'Elizabeth' surname: 'Schneider' phone: '03/561 23 12' email: '[hidden email]').

debugger:
MessageNotUnderstood: ByteString: >>parent:

addAddress: aDemoAddress
       
           self addresses add: aDemoAddress.
          aDemoAddress parent: self

aDemoAddress:     '[hidden email]'

 

Ching

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: problem running the tutorial: MessageNotUnderstood: ByteString: >>parent:

Janko Mivšek
Hi Ching,

How did you write acceessors and mutators for ADemoAddress?

    ADemoAddress>>email
        ^email

    ADemoAddress>>email: aString
        email := aString

But you probably write mutator a wrong way:

    ADemoAddress>>email: aString
        ^email := aString

In any case, try to use debugger next time to find such a mistake.

Hope this helps
Janko




On 04. 01. 2011 00:46, Ching de la Serna wrote:

> Hi,
>
> I am trying to follow the Tutorial and have gotten as far as running the
> script on a WorkSpace. I tried removing this code from the script
> aDemoAddress parent: self and there is no error message. However, the
> Tutorial says it is _handy for something else later on so I don't know
> what to do next.
>
> Running this *Doit *on a workspace produces an error:
>
>     book _ ADemoAddressBook new.
>     book
>        addAddress: (ADemoAddress newName: 'Sebastjan' surname: 'Dormir'
>     phone: '01/514 33 66' email: '[hidden email]
>     <mailto:[hidden email]>');
>        addAddress: (ADemoAddress newName: 'John' surname: 'Newton'
>     phone: '05/555 77 66' email: '[hidden email]
>     <mailto:[hidden email]>');
>        addAddress: (ADemoAddress newName: 'Elizabeth' surname:
>     'Schneider' phone: '03/561 23 12' email: '[hidden email]
>     <mailto:[hidden email]>').
>
>     debugger:
>     MessageNotUnderstood: ByteString: >>parent:
>
>     addAddress: aDemoAddress
>            
>                self addresses add: aDemoAddress.
>               aDemoAddress parent: self
>
>     aDemoAddress:     '[hidden email]
>     <mailto:[hidden email]>'
>
>          
>
>
> Ching
>
>
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida