Computer Science Canada how do you make your own commands? |
Author: | Shyfire [ Wed Jun 29, 2005 9:36 pm ] |
Post subject: | how do you make your own commands? |
could someone explane how those ppl are making there own turing commands !!!!!!!! and show me how to do it to |
Author: | Delos [ Wed Jun 29, 2005 11:00 pm ] | ||||
Post subject: | |||||
I believe what you're referring to is people making modules/classes. This does not mean that they are editting the Turing language in anyway.
This is a 'command' of my own making. I put this in my file, then I type 'sayHello' and bang!
Another of my own 'commands'. This time, you can choose what name it's going to say hello to. Look up the tutorials on Modules, and Classes. You'll see examples where one has made a series of linked 'commands' (Modules) or linked behaviours of a specified object (Classes). |
Author: | [Gandalf] [ Thu Jun 30, 2005 1:23 am ] |
Post subject: | |
Delos wrote: This does not mean that they are editting the Turing language in anyway.
On the contrary, we can easily change the parameters for some command already in Turing, often programmed in C++. There are also some commands programmed in Turing. In that case we can edit the language directly, changing commands that are already there. I believe you were talking about making completely new modules. If you want to make work with Turing, adding to it and changing it the yes, look into how modules and classes work, mostly modules though. |