LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

the BASQUICK library

Root / Talk About Programs / [.]

DFrostCreated:
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

EVAL() BASICally uses PRGINS to insert the input into the 1st slot.

There is a total of ~400 lines as of today(March 13, 2018). EVAL(): evaluates the expression.Ex:
PRINT EVAL("20 + 20")
40
OK

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

You should probably separate type checking from string matching. For example, functions like TYPEOF, ISEMAIL, ISFILENAME, etc.

OK! Thanks for the feedback! Will be in 0.1.4! Also, there must be a way to make a try-catch block. I'm not promising anything, but I'll try...

I'm thinking about using your Diamond-Square algorithm in the library, If your fine with it... Everything else is my own work.
Spoilerthe TYPEOF is a build - on to Calc84's TYPEOF command, though.

if I make a try-catch block then it will only work for SB's functions, and my own, though. I have an idea for it.

Wow

What's catching your eye?(what are you "Wow" ing about?)

I am now implementing a ForEach() function (based from JavaScript's version. The cool thing about it is that it works on literally ANY array, regardless of dimensions, size, etc.