Page 2 of 2 <12
Topic Options
#64423 - 2002-04-12 12:09 AM Re: HEADSUP: Intended behavior? "$=" creates a variable
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
coming to back on thinking on this topic.
I quess it wouldn't be so hard on ruud if he would disable string parsing.
I mean, string context would not parsed for macros or vars.
it also makes it simple to all users that the correct syntax is
""+$var+""plaa"+@ldrive+"plaa plaa"

this also, even thou it reduces the speed a little, makes it lot's of easier to error and syntax check your code.

still, there is other things for him to do too, but this could be tried in some future beta/rc.
_________________________
!

download KiXnet

Top
#64424 - 2002-04-11 05:19 PM Re: HEADSUP: Intended behavior? "$=" creates a variable
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
also,

with 4.10 beta 1 the new floating point variables will not work inside a string.

code:
$var = 1.234

? "$$var = " + $var
? "$$var = $var"

Bryce

Top
#64425 - 2002-05-06 03:49 AM Re: HEADSUP: Intended behavior? "$=" creates a variable
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Bryce, this behaviour is what prompted my semi-function call. The ""'s convert the real to a string.

cj

Top
#64426 - 2002-05-06 05:28 AM Re: HEADSUP: Intended behavior? "$=" creates a variable
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
...and that is confirmed by the code

$var = 1.234
? "$$var = " + $var

$var = "" + 1.234
? "$$var = $var"
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.061 seconds in which 0.031 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org