? Structs Library ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Structs Library

Submitted
Updated
Author
snail_
Public Key
KEV343A4
Min. Compat.
All
Version
1.1
Size
15.9 KB
Rating
8 votes
Description This library allows the programmer to define, instantiate, and manipulate structs within SmileBASIC. This library is created with vanilla SB code, no funny tricks. Simple, efficient, and applicable to a broad range of scenarios, it brings SB one step closer to object-oriented paradigms. Instructions Contained in the package are multiple files. The actual library is the PRG SNL_STRUCT.LIB, the rest are test and example files included for demonstration purposes. A complete documentation is coming, but for now examine the examples to get a feel for how it works.
Categories
Keywords
  • struct
  • library
  • tool
  • code
8 Comment(s) Super_Defaultio Super_Defaultio Video Games I like to play video games! Hobbies Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Why are we making programming languages again??? Why are they so hard to learn and not begginner oriented languages??? Questions are fun. snail_ snail_ Helper Received for being very helpful around SmileBASIC Source Achievements First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself This isn't a language, this provides an interface and a struct data type. banana 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 Hey. I have a problem, in FLOATTEST, the output is that I have is: 1 1 When I think it should be the values of PI() and EXP() banana 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 Oops. I made a great mistake. Sorry! 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website @STRUCT_PROGRAM DATA "STRING","NAME" DATA "STRING","AUTHOR" DATA "FLOAT","VERSION" DATA "STRING","KEY" DATA "END" DIM LIB[0] STRUCT "PROGRAM" OUT LIB SET LIB,"NAME","Structs Library" SET LIB,"AUTHOR","slackerSnail" SET LIB,"KEY","4KXP3EBD" SET LIB,"VERSION",1.0 PRINT FIELD(LIB,"NAME");" ";FIELD(LIB,"VERSION") PRINT "By: ";FIELD(LIB,"AUTHOR") PRINT "Key: ";FIELD(LIB,"KEY") 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website DATA "STRING","KEY" '4KXP3EBD snail_ snail_ Helper Received for being very helpful around SmileBASIC Source Achievements First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself "What's the key?" PRINT FIELD(L,"KEY") 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website SET L,"KEY","REMOVED"