Subj : Re: GETSTR
To : All
From : Tracker1
Date : Thu Jan 24 2002 04:18 am
Nod, would be cool to allow various scripting contexts, as a scripting
environment that uses the various runtimes, kind of like ms does to allow
js, vbs, ps etc for asp, or wsh.
I like js, and think it is about my fav language though.. also, defining
classes is different, in js it is done by declaring a variable's property to
a function designed as a class. See below for example.. Most people don't
know that JS can be used this way, as well as calling other functions, or
assigning functions as properties.
JS is actually a pretty complete language, you need to have objects for the
run-time context (Synchronet), but it's really cool.
-------------
function MCAlert(inName,inValue,inMore) {
alert(inName + ": " + inValue);
}
function MyClass(inName,inValue) {
this.name = inName;
this.value = inValue;
this.alert = new Function("inMore","return
MCAlert(this.name,this.value,inMore)");
}
var arrMC_Info = new Array()
arrMC_Info[0] = new MyClass("location","phoenix")
//now you can reference
for (var i=0; i<arrMC_Info.length; i++) {
//print(arrMC_Info[i].name)
//print(arrMC_Info[i].value)
}
=======================================================================
Michael J. Ryan -
[email protected]
aim: aztrackr1 - icq: 4935386 - Y!: tracker_1.rm - msn: see email
=======================================================================
One program for aim/icq/yahoo/msn -
http://www.trillian.cc/
"Rocko" <Rocko@NSTLG> wrote in message news:1361...
> RE: GETSTR
> BY: Darqualan to Digital Man on Tue Jan 22 2002 11:43 pm
>
> > There is one other difference between Javascript and Java, Javascript
is eas
> > to work with and the synax is quite different from what we worked on in
> > college.
>
> In the grander scheme of things, they're pretty close. I understand
that
> for a Java app to launch it needs a main method contained in an object,
and
> that's the big difference right away.
> However, compare it to.. say, scheme, and they're quite similar.
>
> Uh oh I got a scheme fancy coming on. Pretty powerful little
language, if
> anybody ever gave a damn about it. Still would have had a blast writing
SBBS
> scripts with it, if that were possible.
> ---
> � Synchronet � Hot babes us Nostalgia BBS! -- nostalgia.hellskitchen.org
---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net