Float printString?

Robert Kuszinger <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <CAJS2e5hSvz-K7EpYHrsFL5xCBLDuvsKEPcok4ZK2NL=YbYrjHQ@mail.gmail.com>
Hello!

I've made a script to perform GRASS GIS operations automatically.
It was running for weeks nicely.

Today it emerged:

Object: 1 error: The program attempted to divide a number by zero
ZeroDivide(Exception)>>signal (ExcHandling.st:254)
SmallInteger(Number)>>zeroDivide (SysExcept.st:1386)
Fraction>>setNumerator:setDenominator: (Fraction.st:485)
Fraction class>>numerator:denominator: (Fraction.st:66)
Fraction>>raisedToInteger: (Fraction.st:510)
SmallInteger(Number)>>raisedToInteger: (Number.st:922)
FloatD(Float)>>printOn:special: (Float.st:525)
FloatD(Float)>>printOn: (Float.st:436)
*FloatD(Object)>>printString (Object.st:546)*
FloatD(Object)>>printStringIfNecessary (process_25.st:15)
optimized [] in UndefinedObject>>executeStatements (process_25.st:298)
Array(SequenceableCollection)>>do: (SeqCollect.st:826)
UndefinedObject>>executeStatements (process_25.st:212)

So, somehow float cannot print itself anymore.
Maybe there was an upgrade of *gst *in the background...






*GNU Smalltalk version 3.2.91-716884a[...]Using default kernel path:
/usr/share/smalltalk/kernelUsing default image path: /var/lib/smalltalk*
*OS:* Linux kuszidell 4.6.3-1-ARCH #1 SMP PREEMPT Fri Jun 24 21:19:13 CEST
2016 x86_64 GNU/Linux


Code:
Transcript showCr: 'Lejtés: ',quo printStringIfNecessary.

printStringifNecessaey is my wrapper for printString not to print extra '
for Strings...

I wouldn't dare to instpect and touch float code and this may reach others
as well...

thanks
Robert
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.