Magritte bug?

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

Magritte bug?

keith1y
I find

MAWriter-visitReferenceDescription: anObject
    self visitElementDescription: anObject

should that be?

MAWriter-visitReferenceDescription: anObject
    self visitElementDescription: anObject reference


Keith

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Magritte bug?

Lukas Renggli-2
> I find
>
> MAWriter-visitReferenceDescription: anObject
>     self visitElementDescription: anObject
>
> should that be?
>
> MAWriter-visitReferenceDescription: anObject
>     self visitElementDescription: anObject reference

No, MAWriter is an abstract class inheriting this method from  
MAVisitor. The code is the default behavior of the visitor without  
any interpretation. MAStringWriter, a subclass of MAWriter, changes  
this for example to:

MAStringWriter>>visitToOneRelationDescription: aDescription
        self visit: self object description

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Magritte bug?

keith1y
In reply to this post by keith1y
Keith Hodges wrote:

> I find
>
> MAWriter-visitReferenceDescription: anObject
>     self visitElementDescription: anObject
>
> should that be?
>
> MAWriter-visitReferenceDescription: anObject
>     self visitElementDescription: anObject reference
>
>
> Keith
>  
Ok, thats not quite correct.

I am trying to get an MASingleOptionDescription to write out its values
according to its reference deescription

Keith

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Magritte bug?

keith1y
Keith Hodges wrote:

> Keith Hodges wrote:
>  
>> I find
>>
>> MAWriter-visitReferenceDescription: anObject
>>     self visitElementDescription: anObject
>>
>> should that be?
>>
>> MAWriter-visitReferenceDescription: anObject
>>     self visitElementDescription: anObject reference
>>
>>
>> Keith
>>  
>>    
> Ok, thats not quite correct.
>
> I am trying to get an MASingleOptionDescription to write out its values
> according to its reference deescription
>
> Keith
>  
Which it does, unless you happen to set your default to something odd.

I was attempting to set the default of a MASingleOptionDescription using
a dynamic object.

Keith

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki