[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== sum() -- weird behaviour (OpenInsight Specific) ====
=== At 12 JAN 1999 05:42:01AM bwk@akribi.se wrote: ===
{{tag>"OpenInsight Specific"}}
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
----
=== At 12 JAN 1999 06:08AM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)", [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Ltd[/url] wrote: ===
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.
amcauley@sprezzatura.com
[url=http://www.sprezzatura.com" ]Sprezzatura Ltd[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 12 JAN 1999 06:53AM Oystein Reigem wrote: ===
Bengt,
[b]Are[/b] er [b]you[/b] du [b]sure[/b] sikker? [b]I[/b] jeg [b]ran[/b] kjørte [b]your code[/b] programkoden din [b]and[/b] og [b]my[/b] min [b]3.61[/b] 3.61 [b]debugger[/b] debugger [b]says[/b] sier [b]b[/b] b [b]is[/b] er [b]unchanged[/b] uforandret ([b]i.e[/b] dvs, [b]""[/b] ""). [b]But[/b] men [b]c[/b] c [b]becomes[/b] blir [b]0[/b] 0, [b]of course[/b] selvfølgelig.
- Oystein -
----
=== At 12 JAN 1999 06:59AM oYSTEIN rEIGEM wrote: ===
A,
[i]case sensitivity[/i]
You have my sympathy. Only today on this very list I referred to a file as .jpg when it was .JPG. Oh, shame!
- O -
----
=== At 12 JAN 1999 02:08PM Eric Emu wrote: ===
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.
----
=== At 13 JAN 1999 03:36AM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)", [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Ltd[/url] wrote: ===
Guess you were stitched up?
amcauley@sprezzatura.com
[url=http://www.sprezzatura.com" ]Sprezzatura Ltd[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 13 JAN 1999 05:48AM bwk@akribi.se wrote: ===
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(c)
return 'c is ':c
------------
is run under OI 3.2
it will give the result
run x
c is 0
----
=== At 13 JAN 1999 05:50AM bwk@akribi.se wrote: ===
this error may have been corrected in later versions, it's wrong in 3.2 .. I haven't executed it in 3.6
/bengt
----
=== At 13 JAN 1999 01:42PM bwk@akribi.se wrote: ===
case sensivity is OK when you're used to it .. (I want my c-compiler back .. )
----
=== At 15 JAN 1999 06:42PM Cameron Revelation wrote: ===
bwk -
In the current version, the behavior is the same. Sum("") returns 0.
Cameron Purdy
Revelation Software
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=C198E5981F3D7ED1852566F7003AC796|View this thread on the forum...]]