[aida] problem running the tutorial: MessageNotUnderstood: ByteString: >>parent:

Janko Mivšek janko.mivsek at eranova.si
Tue Jan 4 01:06:00 CET 2011


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: 'sebastjan na something.si
>     <mailto:sebastjan na something.si>');
>        addAddress: (ADemoAddress newName: 'John' surname: 'Newton'
>     phone: '05/555 77 66' email: 'john na something.si
>     <mailto:john na something.si>');
>        addAddress: (ADemoAddress newName: 'Elizabeth' surname:
>     'Schneider' phone: '03/561 23 12' email: 'elizabeth na something.at
>     <mailto:elizabeth na something.at>').
> 
>     debugger:
>     MessageNotUnderstood: ByteString: >>parent:
> 
>     addAddress: aDemoAddress
>            
>                self addresses add: aDemoAddress.
>               aDemoAddress parent: self
> 
>     aDemoAddress:     'sebastjan na something.si
>     <mailto:sebastjan na something.si>'
> 
>          
> 
> 
> Ching
> 
> 
> 
> _______________________________________________
> Aida mailing list
> Aida na aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list