George can you give us a list of objects and their relationships in Transcendence?
I can guess the basic number, list, and string but what are the limitations on those?
some basic questions for George
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
Crying is not a proper retort!
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Not sure exactly what you mean (the question is very broad).
The Transcendence script uses:
integers (32-bit signed numbers)
strings (arbitrary sized arrays of characters)
lists (arbitrary sized arrays of any type)
functions (either built-in primitives or user-defined)
Things like ship and station pointers are just integers that happen to be the underlying C++ pointer for the actual object.
The Transcendence script uses:
integers (32-bit signed numbers)
strings (arbitrary sized arrays of characters)
lists (arbitrary sized arrays of any type)
functions (either built-in primitives or user-defined)
Things like ship and station pointers are just integers that happen to be the underlying C++ pointer for the actual object.
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
Well what kinds of things do functions expect? I know a pointer is an int but that doesn't help me in defining the function. So if a function is expecting a ship I should pass it a pointer to a ship object. Those are the kinds of things I want.
strings are lists? hmm can list functions work on strings too? that could be very helpful.
strings are lists? hmm can list functions work on strings too? that could be very helpful.
Crying is not a proper retort!
- Ttech
- Fleet Admiral
- Posts: 2767
- Joined: Tue Nov 06, 2007 12:03 am
- Location: Traveling in the TARDIS
- Contact:
So we can do functions?george moromisato wrote:Not sure exactly what you mean (the question is very broad).
The Transcendence script uses:
integers (32-bit signed numbers)
strings (arbitrary sized arrays of characters)
lists (arbitrary sized arrays of any type)
functions (either built-in primitives or user-defined)
Things like ship and station pointers are just integers that happen to be the underlying C++ pointer for the actual object.
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
in lisp nearly everything is a function. Every one of those things in the function list is a function. You can even create your own (see the code examples thread)
Crying is not a proper retort!