? the BASQUICK library (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

the BASQUICK library

  • #1 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength 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 Posted Edited by DFrost
  • #2 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength EVAL() BASICally uses PRGINS to insert the input into the 1st slot. Posted
  • #3 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength There is a total of ~400 lines as of today(March 13, 2018). EVAL(): evaluates the expression.Ex: PRINT EVAL("20 + 20") 40 OK Posted
  • #4 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength 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$("[email protected]") 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 Posted Edited by DFrost
  • #5 ✎ 1612 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself You should probably separate type checking from string matching. For example, functions like TYPEOF, ISEMAIL, ISFILENAME, etc. Posted
  • #6 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength 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... Posted
  • #7 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength I'm thinking about using your Diamond-Square algorithm in the library, If your fine with it... Everything else is my own work. the TYPEOF is a build - on to Calc84's TYPEOF command, though. Posted
  • #8 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength 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. Posted
  • #9 ✎ 86 banana RNG Hidden Easter Eggs Disguised Hidden Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Wow Posted
  • #10 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength What's catching your eye?(what are you "Wow" ing about?) Posted
  • #11 ✎ 132 DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength 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. Posted