help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary


From: Jānis Rūcis
Subject: Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail
Date: Fri, 23 Mar 2007 16:00:10 +0200
User-agent: Icedove 1.5.0.9 (X11/20061220)

Paolo Bonzini wrote:
>> I don't see a reason to follow the standard so closely that it would
>> make for a less useful behaviour.
> 
> Unfortunately, this is not something that I can do (nor want,
> actually).

It's a side issue.  It doesn't have the intended effect if you take it
out of context like that.  But it was not a general statement, anyway.
I was speaking specifically of something Stephen wrote:

> Furthermore, <Dictionary factory>>>#withAll: is equivalent to its
> current definition in GST, so its arg must also be an
> <abstractDictionary> as implied by the above addAll: definition.

Taken literally, the standard says "nothing but Dictionary".  But my
point is, if a Dictionary is a Collection of Associations, any such
Collection can be used.  This isn't a violation of standard.  It's
interpretation.  That's what "abstract" in "<abstractDictionary>" means.
 "If it walks like a duck and quacks like a duck, ..."

The only thing that stands in the way of that is #do:.  Dictionary>>#do:
isn't in the standard, so compliance is not really a problem.

Jānis




reply via email to

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