type and code

Blitz3D Forums/Blitz3D Programming/type and code

vivaigiochi(Posted 2006) [#1]
I wrote a code and i want use a set of type declared with relative functions that update the data of this type.
it's possible at runtime add some new type with it's own set of functions for update? this question because i want known how i can reduce the source code and if it possible load new type and code at runtime or if i must wrote all type and relative function in one program...
Thanks for any help


Matty(Posted 2006) [#2]
I think what you are suggesting may be possible with 'blitz virtual machine' by koriolis. It is in the toolbox above.

http://blitzbasic.com/toolbox/toolbox.php?tool=43

I bought a copy a while ago but never got around to using it but think that it will do what you are after.


vivaigiochi(Posted 2006) [#3]
it is not exactly what i want


b32(Posted 2006) [#4]
You can't compile code at runtime, unless you use the virtual machine. However I'm not sure if you need this.
You can pass the instance of a type as a parameter:

If you need any parameters, you can store them in the type.