quote:
Originally posted by Dauntless
Now, it's really not that complex... I mean, how complex can 100 lines of basic JScript be
Certainly more complex than 24. If two pieces of code do the same thing, and one is shorter, use that one. Shorter is often simpler.
quote:
Originally posted by Dauntless
Since JScript doesnt support propper OO, I can't put this in nice, structured classes
The only thing that JScript doesn't support is inheritance, which also removes polymorphism and abstraction. Both of which aren't necessary in scripting really.
There are plenty of other OO features though: a function declaration can actually define a class, and using the 'prototype' property, objects both built-in and custom can be extended.
quote:
Originally posted by Dauntless
And from your code, i take it that type conversion is done automaticly ?
JScript is a weakly-typed language, which means that all datatypes are implicit, and all possible conversions are performed automatically.