Hi all,

The part below is a part of an interview with Ruud van Velsen. You can find the complete interview at: http://home.wanadoo.nl/scripting/specials/interview.htm

quote:

Ruud:
Backwards compatibility is very important to me. This is why I still support some of the quirky language things of the past.
Steve:
By quirky do you mean this:

"Hello $YourName, How are you?"
Ruud:
Yes, yes, indeed. Do you think I could get away with dropping that kind of stuff? I'd love to...
Steve:
Well, one thing that you can't eliminate is this:

$SUM = 1 + 1

$TextSum = "$SUM"

To convert an Integer to a string. Unless you wrote a function...
Ruud:
Mmm. I'll think about the options.


And:

quote:

Ruud:
Getting rid of ? "Hello $UserName..." would be very nice...
Steve:
If that feature were removed, would that speed up the compiler's execution?
Ruud:
Removing variables-inside-strings would add some speed, and would certainly allow me to get rid of some ugly coding.
Steve:
So that would also decrease the EXE size?
Ruud:
Yes, a bit. Well, a few bits really. But is that an issue?
Steve:
Not on a LAN. But of course, in a RAS environment, every KB helps.
Ruud:
RAS, I see.


I was testing the new version against the old version with this:

code:
BREAK ON CLS

open (1,"setuplog.txt")

$Begin=@TIME

$line=readline(1)
While @ERROR=0
? $line
$line=readline(1)
loop

$End=@TIME

CLS

$Bh=substr($Begin,1,instr($Begin,":")-1) $Bl=substr($Begin,instr($Begin,":")+1,len($Begin))
$Bm=substr($Bl,1,instr($Bl,":")-1) $Bs=substr($Bl,instr($Bl,":")+1,len($Bl))

$Eh=substr($End,1,instr($End,":")-1) $El=substr($End,instr($End,":")+1,len($End))
$Em=substr($El,1,instr($El,":")-1) $Es=substr($El,instr($El,":")+1,len($El))

$Bd=val($Bh)*3600+val($Bm)*60+val($Bs)
$Ed=val($Eh)*3600+val($Em)*60+val($Es)

? "Begin = " $Begin
? "End = " $End
? "Diff = " $Ed-$Bd

exit


And started thinking about it. If someone would switch to the new version, you would convert your scripts anyway.

So can anyone give a good reason why it should stay in? Personally, I think the issue about speed and size would be better than keeping this feature.

[ 03 July 2001: Message edited by: DrillSergeant ]

[ 03 July 2001: Message edited by: DrillSergeant ]

_________________________
The Code is out there