[squeak-dev] JSON in SCouchDB

Tim Felgentreff tim at nada1.de
Mon Jun 21 08:56:14 UTC 2010


On Jun 20, 2010, at 6:51 PM, Igor Stasenko wrote:

> On 20 June 2010 19:27, Tim Felgentreff <tim at nada1.de> wrote:
>> Subclassing the Dictionary directly just didn't work on gnu smalltalk (for reasons have yet been unable to determine) - calling new on any subclass of Dictionary will throw an error.
> 
> Oh.. i see. Bad luck. File the bug report to GNU St developers :)
> 

I got an answer on smalltalk-help (the gnu smalltalk ML), and it's a trivial solution. Still 

On Jun 21, 2010, at 8:14 AM, Tony Garnock-Jones wrote:

> Igor Stasenko wrote:
>>> Originally, a JSON library was also used a delegation.
> 
> Originally, the JSON library used Dictionary itself, adding the relevant
> serialization method directly to Dictionary. I don't think there's any need for
> a special JsonObject class. Perhaps we could switch back to using Dictionary
> itself (just as we currently use String, Array, Number, etc.).
> 
> Tony
> 

I would like that, even though I now have a solution for the subclassing problem. 


More information about the Squeak-dev mailing list