[GemStone-Smalltalk] first: / last:

Philippe Marschall via GemStone-Smalltalk gemstone-smalltalk at lists.gemtalksystems.com
Wed Oct 1 10:13:39 PDT 2014


On Thu, Sep 18, 2014 at 3:20 PM, via GemStone-Smalltalk
<gemstone-smalltalk at lists.gemtalksystems.com> wrote:
> The implementation of #first: and #last: in GemStone is very different from
> VW, Pharo and VA.
>
> On GS the methods set the first or last value, in other dialects they answer
> a copy with the first or last indexed values.
>
> GS: #(a b c d e) copy last: 3; yourself  --> anArray( #'a', #'b', #'c',
> #'d', 3)
> In the other dialects, we get: #(a b c d e) last: 3 -->   #(#c #d #e)
>
> Any plans for this to change?

Not that it matters or anyone cares but coming from Squeak/Pharo I
have to admire the #first #first: symmetry in GemStone which matches
the "Smalltalk-getter-setter"-pattern.

Cheers
Philippe


More information about the GemStone-Smalltalk mailing list