help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Subclassing dictionary


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Subclassing dictionary
Date: Mon, 21 Jun 2010 10:54:09 +0200

> Trying to port the Squeak JSON package I came across
> rather strange behaviour. One of the classes, JsonObject, is
> a subclass of dictionary. I noticed that subclassing Dictionary
> would throw an error:

This is the same that you get in Squeak if you use #subclass: instead
of #variableSubclass: etc.

You can put this in the body of the class:

    <shape: #inherit>

and it will fix the problem.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]