I have been working on an Object Oriented Extension for SB called BASQUICK(yes, it's wordplay). It has been in development for a few weeks. The "objects" are arrays. I just did some JS a little bit ago and saw what it looks like when you reference an object. I'm going to implement it to SB. BASQUICK is now in version 0.1.3 as of March 13, 2018(today). It has an implementation of the "new" command from JS. It comes with the EVAL() and TYPEOF$() commands
the BASQUICK library
TYPEOF$() gets the type of value inputted.
Example:
PRINT TYPEOF$(20)
integer
OK
PRINT TYPEOF$("HELLO SBS!")
string
OK
DIM ARRAY$[20]: FILL ARRAY$,"FOO": PRINT TYPEOF$(ARRAY$)
string array
OK
'because my dad wanted me to do this:
PRINT TYPEOF$("someone@gmail.com")
email
OK
REM also, while I was at it, I decided to use CHKFILE() to check if the file by the name of a string existed
PRINT TYPEOF$("PRG0:FOO")
program file
OK
I will eventually add a feature so you can mask out the extras like:
email
files{
PRG
GRP
DAT
TXT
}
There will also be a feature where the return type is integer, not string