kind and PriorityContainer

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

kind and PriorityContainer

NorbertHartl
I have a problem understanding the scope of using MADescription>>kind. It does not work when being used on a priority container.

If used on a MAContainer the validation fails because in

MADescription>>validateKind: anObject
        "Validate ==anObject== to be of the right kind."
        (anObject isKindOf: self kind)
                ifFalse: [ MAKindError description: self signal: self kindErrorMessage ]

anObject will be the memento and therefor it can not work unless self kind is Object. Is the scope of kind not meant to be used that way or is this a problem within magritte?

thanks,

Norbert


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