I wonder how long exists serious bug like this. Open Workspace. Type something like. '-94' asInteger Inspect it, and see
Edgar
On Wed, Sep 29, 2004 at 06:40:30AM -0300, Lic. Edgar J. De Cleene wrote:
I wonder how long exists serious bug like this. Open Workspace. Type something like. '-94' asInteger Inspect it, and see
This bug was introduced Sept 1, 2000. Prior to that, the String>>asInteger method did not exist. I entered this in the Mantis bug tracker (but I recorded it as a "minor" bug).
Dave
On 29/09/04 22:55, "David T. Lewis" lewis@mail.msen.com wrote:
On Wed, Sep 29, 2004 at 06:40:30AM -0300, Lic. Edgar J. De Cleene wrote:
I wonder how long exists serious bug like this. Open Workspace. Type something like. '-94' asInteger Inspect it, and see
This bug was introduced Sept 1, 2000. Prior to that, the String>>asInteger method did not exist. I entered this in the Mantis bug tracker (but I recorded it as a "minor" bug).
Dave
Dave: With all respect, I disagree what is a minor bug. What about reading legacy text data saved in disk for using into Squeak ? Lucky us what no Bank is doing something like this.
Edgar
have you check 3.8 unstable because this is fixed so you can close the bug on mantis
Stef On 30 sept. 04, at 11:32, Lic. Edgar J. De Cleene wrote:
On 29/09/04 22:55, "David T. Lewis" lewis@mail.msen.com wrote:
On Wed, Sep 29, 2004 at 06:40:30AM -0300, Lic. Edgar J. De Cleene wrote:
I wonder how long exists serious bug like this. Open Workspace. Type something like. '-94' asInteger Inspect it, and see
This bug was introduced Sept 1, 2000. Prior to that, the String>>asInteger method did not exist. I entered this in the Mantis bug tracker (but I recorded it as a "minor" bug).
Dave
Dave: With all respect, I disagree what is a minor bug. What about reading legacy text data saved in disk for using into Squeak ? Lucky us what no Bank is doing something like this.
Edgar
On 01/10/04 07:42, "stéphane ducasse" ducasse@iam.unibe.ch wrote:
have you check 3.8 unstable because this is fixed so you can close the bug on mantis
Stef
Stef: I following 3.8 from far and trying Avi experiments. Currently I trying all previous projects, etc, work as expected in 3.7. Would remember me what is the steps four using mantis ? Where I could read more ? I have BFAV2 loaded in 3.7 , I need another tool ? Thanks in advance.
Edgar
On Thu, Sep 30, 2004 at 06:32:43AM -0300, Lic. Edgar J. De Cleene wrote:
On 29/09/04 22:55, "David T. Lewis" lewis@mail.msen.com wrote:
On Wed, Sep 29, 2004 at 06:40:30AM -0300, Lic. Edgar J. De Cleene wrote:
I wonder how long exists serious bug like this. Open Workspace. Type something like. '-94' asInteger Inspect it, and see
This bug was introduced Sept 1, 2000. Prior to that, the String>>asInteger method did not exist. I entered this in the Mantis bug tracker (but I recorded it as a "minor" bug).
Dave
Dave: With all respect, I disagree what is a minor bug. What about reading legacy text data saved in disk for using into Squeak ? Lucky us what no Bank is doing something like this.
Maybe you are right. I just wanted to put it on Mantis and see if someone would react to it. Someone did, so that's good :)
I am also happy to see that a "minor" bug got fixed quickly. That means that people will not be tempted to call their favorite bugs "critical" in order to get them fixed.
Come to think of it, there is a bug/fix in BFAV right now that I think is "critical," but it has not gotten much attention. I think that I will change it to "minor" so that it will be resolved faster ;-))
Dave
On 01/10/04 18:32, "David T. Lewis" lewis@mail.msen.com wrote:
I am also happy to see that a "minor" bug got fixed quickly. That means that people will not be tempted to call their favorite bugs "critical" in order to get them fixed.
Come to think of it, there is a bug/fix in BFAV right now that I think is "critical," but it has not gotten much attention. I think that I will change it to "minor" so that it will be resolved faster ;-))
Dave
Dave: Thanks and for completeness about this issue: In 3.7 exist asSignedInteger "Answer the Integer created by interpreting the receiver as the string representation of an integer, possibly with a leading minus sign. Answer nil if no digits, else find the first digit and then all consecutive digits after that"
And hope this close the subject.
:-)
Edgar
Edgar, you are right!
We have both String>>asInteger and String>>asSignedInteger already. The proposed fix for String>>asInteger makes it work like the existing String>>asSignedInteger. There are no senders of #asSignedInteger in the 3.7 image.
Therefore I think that a simpler and better "fix" is to just get rid of the existing String>>asInteger, and rename #asSignedInteger to #asInteger. That will eliminate one method, make #asInteger behave as expected, and no further changes would be required.
squeak-dev@lists.squeakfoundation.org