A couple of questions, hopefully someone has an answer to one or another.
I think it's possible to run a few different O2-scripts from within one tB-script - at least I hope so. All examples I've studied use only one script once.
So the first question would be: Is there any limit?
When do I have to terminate an O2-script?
And I want to know if it's possible to pass the source-string "src" also as a pointer from tB. Instead
it would be great if it were possible to pass the pointer of - for example some dictionary-bucket so I could 'feed' O2 just by passing some dictionary-keyname alike this:
O2_BasicAt StrPtr(src)
'...
O2_BasicAt Peek(Dword, Dictionary_Exists(my02DrawingDict, "mandelbrot"))
O2_BasicAt Peek(Dword, Dictionary_Exists(my02DrawingDict, "pyramids"))
O2_BasicAt Peek(Dword, Dictionary_Exists(my02CollisionDict, "face2face"))
O2_BasicAt Peek(Dword, Dictionary_Exists(my02CollisionDict, "face2point"))
'...
O2_BasicAt myStrPtr ' whereever - as long as valid stringpointer
' over the top:
O2_BasicAt myPtr, SizeInBytes ' so could use Heap or any other memory to store different scripts
is there such method? Only clue I have is thinBasic_keywords.ini which lists:
O2_ASM
O2_ASMO
O2_ASMO_FILE
O2_ASM_FILE
O2_BASIC *
O2_BUF
O2_ERROR
O2_EVAL *
O2_EXEC
O2_GET
O2_LEN
O2_LINK
O2_PREP *
O2_PUT
O2_VIEW
O2_VIEW_FILE
OXYGEN_EVAL - suppose, has been replaced with O2_Eval ?
* = no documentation found
...or would it be better to have all those example functions in the code above (drawing, collision) in one big O2-script that stays permanently "alive" as long as my tB-script runs?
Bookmarks