[GemStone-Smalltalk] first: / last:

via GemStone-Smalltalk gemstone-smalltalk at lists.gemtalksystems.com
Thu Sep 18 06:20:26 PDT 2014


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? 

Bob Nemec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/gemstone-smalltalk/attachments/20140918/ff721575/attachment.html>


More information about the GemStone-Smalltalk mailing list