Show messages: All
1-2
3-7
From: fcwilt
Hi Michael,
Are classes even a thing in your Java Script?
If the exist can they be used in "end user scripts"?
JOOC is MoI written entirely in Java Script or is the some C++ code at the heart of it?
Thanks.
Frederick
From: Michael Gibson
Hi Frederick,
re:
> Are classes even a thing in your Java Script?
They are, although the JavaScript engine that MOI uses is old and only supports the ES5 version of the JavaScript language.
In ES6 there is a new "class" keyword but it doesn't do a whole lot.
https://stackoverflow.com/questions/31908058/classes-in-javascript-ecmascript-5#31908169
> If the exist can they be used in "end user scripts"?
Yes, if you keep to the ES5 level.
> JOOC is MoI written entirely in Java Script or is the some C++ code at the heart of it?
There is a lot of C++ code at the core level, JavaScript is used for for controlling program flow, UI, and glue logic.
- Michael
From: fcwilt
Hi Michael,
So in addition to being a GUI wizard, a Java Script connoisseur, you are a C++ master?
Amazing.
Once I discovered Delphi I said goodbye to C++ and never looked back. Any one that can deal with C++ deserves applause.
Is a "Java Script Engine" something that is compiled into your program or is it something else?
Thanks for the ongoing education.
Frederick
From: Michael Gibson
Hi Frederick,
> Is a "Java Script Engine" something that is compiled into your program or is it something else?
It's a library written itself in C++ that implements the JavaScript language.
- Michael
From: fcwilt
Hi Michael,
OK I think all is clear.
Frederick
Show messages: All
1-2
3-7