help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] State of the PetitParser


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] State of the PetitParser
Date: Sun, 29 Aug 2010 18:12:22 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2 Thunderbird/3.1.1

On 08/29/2010 06:08 PM, Paolo Bonzini wrote:

> - I don't know if Squeak supports #copyFrom:to: on Streams at all, but
> if so that may be different as well.  In GNU Smalltalk, #copyFrom:to:
> on Streams is 0-based. While inconsistent with collections, this makes
> (a lot of) sense for consistency with the values returned by
> #position.

The diff is that ReadStream>>on:from:to is assigning vars directly (GST goes
throup the collection and copyFrom:to) and the second diff is that firstIndex
0,1 are treated equally..

e.g. like this (from Pharo 1.1)
position := firstIndex <= 1
                ifTrue: [0]

So next I might copy/merge the SUnit Coverage Changes and then try to figure
out if all my position -> self position calls are correct...



reply via email to

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