Ok, as my first contribution, I thought I would make a recommendation for a structure system.
To create a new structure, just start adding members to it.
To add a member to a strucure, use the
<structure_name> HAS VISIBLE BIKE <name_of_member> <structure_name> HAS BIKE <name_of_private_member>
Optionally, to make something private, INVISIBLE can be used. Or maybe we can make INVISIBLE be protected.
To add a function to the structure:
<structure_name> HAS VISIBLE BIKE LIKE <function_name> <function_body> KTHX
The function setup is similar to the function definition in the contributions. So adding a parameter would require a WITH list. Refearing to the instance being operated on is tentively CHEEZBURGER, but I'm open to suggestions
To Call a function, use RIDES BIKE:
<instance> RIDES BIKE <function>
To get a public member, use WANTS
<instance> WANTS <member>
Example of creating a structure called Animal
HAI CAN HAS STDIO? BTW Animal is the structure name. Animal HAS VISIBLE BIKE Name Animal HAS VISIBLE BIKE Sex ITZ "Male" Animal HAS VISIBLE BIKE Age ITZ 1 Animal HAS BIKE parts Animal HAS VISIBLE BIKE LIKE PrintName VISIBLE CHEEZBURGER WANTS Name KTHX Animal HAS VISIBLE BIKE LIKE SetParts WITH part CHEEZBURGER WANTS parts IZ part KTHX BTW Here we create an instance of the Animal structure I HAS A Cat ITZ Animal BTW Here we set the name of the Animal instance Cat WANTS Name IS "Lol Cat" Cat WANTS Age IS 5 BTW Here we print the name, set parts to 4, and print the bike age. Cat RIDES BIKE PrintName Cat RIDES BIKE SetParts 4 VISIBLE Cat WANTS AGE
Any thoughts? Suggestions?