kick ass!
kick ass!
Just did some benchmarks with reflection based stuff for kicks and giggles. I have to say I'm quite impressed. The script I ran was 1,000,000 calls to SmartGetFieldInt(0, 'jba.a');
Simba Code:MarkTime(T);
for I := 1 to 1000000 do
begin
LoginIndex := SmartGetFieldInt(0, 'jba.a');
end;
T := TimeFromMark(T);
Writeln('Total Time: '+ToStr(T));SCAR Code:T := Time.SysTime;
for I := 1 to 1000000 do
begin
LoginIndex := SmartGetFieldInt(0, 'jba.a');
end;
T := Time.SysTime - T;
Print('Total Time: '+Types.ToStr(T));
Results:
Simba Code:Starting Test.
Total Time: 9329
Successfully executed.SCAR Code:Starting test...
Total Time: 4836
Script finished (6848ms)
Extinct.
Formally known as Drags111.
That just seems a bit unclear. I feel like a better option would he having it work like the `print` function in python:
python Code:print "hi", "i'm", "a spaced out string.", 3
So having the unlimited accepted parameters then allow one to specify the separator between them. Just a thought![]()
None of the ambiguity of the implicit casting.
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Parsing the syntax isn't much of a problem, integrating it into the engine is...
EDIT: Explicit typecasting of TPoint to string now also works:
SCAR Code:uses Types;
begin
PrintLn(string(Point(5, 5)));
end.
EDIT2: Now the asbtract, sealed, final and absolute keywords are also available check the release thread for examples.
Last edited by Freddy1990; 07-29-2011 at 08:34 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)