here's a tiny little (but annoying) bug I found in the sum()
function ….
b='
c=sum(b)
* b is now 0 (!!) not ''
Our program bugged 'cause of this, took me almost a day to find
out why ..
/bengt
It's a real PITA when this sort of thing trips you up. I spent most of yesterday failing to get a javascript to compile because I called it .js instead of .htm … and don't even get me started on case sensitivity.
World Leaders in all things RevSoft
Bengt,
Are er you du sure sikker? I jeg ran kjørte your code programkoden din and og my min 3.61 3.61 debugger debugger says sier b b is er unchanged uforandret (i.e dvs, "" ""). But men c c becomes blir 0 0, of course selvfølgelig.
- Oystein -
A,
case sensitivity
You have my sympathy. Only today on this very list I referred to a file as .jpg when it was .JPG. Oh, shame!
- O -
I spent all day trying to recompile the next SENL utility, and reloading Windows 95, changing the network card, reformatting the hard disk, only to find that I was sitting at my wife's sewing machine.
Guess you were stitched up?
World Leaders in all things RevSoft
I dunno .. but I feel that most of the replies to my post is kinda
out of scope ..
I had the idea that the sum() function under No circumstances
what so ever should change the in-variable .. now .. OI's sum() function does, and in my opinion that is _wrong_
the fact is that if this program
compile function x(dummy)
c='
b=sum©
return 'c is ':c
is run under OI 3.2
it will give the result
run x
c is 0
this error may have been corrected in later versions, it's wrong in 3.2 .. I haven't executed it in 3.6
/bengt
case sensivity is OK when you're used to it .. (I want my c-compiler back .. )
bwk -
In the current version, the behavior is the same. Sum("") returns 0.
Cameron Purdy
Revelation Software