Closed Thread Icon

Topic awaiting preservation: not sure... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7884" title="Pages that link to Topic awaiting preservation: not sure... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: not sure... <span class="small">(Page 1 of 1)</span>\

 
randy
Paranoid (IV) Inmate

From: Blackstone, Ma, USA
Insane since: Jan 2001

posted posted 10-13-2001 00:40

i found this little snippet of code somewhere in MSDN:
var x : int;
var s : String;
var s1 : String, s2 : String;
var o;
var obj : Object = new Object();
var name : String;


what are the : used for? looks like some sortof typecasting? i have never seen this before.


Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-13-2001 01:32

Looks like it. Must be some sort of JScript* thing. Never seen it before. Maybe it speeds things up a tiny bit to predeclare the types, but... don't develop a habit of using that code.

*for those who don't know, JScript is Microsoft's word for "JavaScript;" since they make changes to it, they have their own name for the "enhanced" version. It's really just the same thing as JavaScript, plus a bunch of things that only IE and Windows support.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 10-15-2001 08:36

looks like Pascal language to me...

Osaires
Paranoid (IV) Inmate

From: oslo, Norway
Insane since: Aug 2001

posted posted 10-16-2001 02:10

It must be pascal, javascript set's the variable type automatic, and this is not alow inn javascript.
pascal was the best

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-16-2001 02:54

I'd say that Slime is right, it's some sort of JScript propietary type casting. It's probably something to come about with MS's .NET framework.

It looks like a combo of Visual Basic and javascript



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

« BackwardsOnwards »

Show Forum Drop Down Menu