Lists in BVM?
BlitzMax Forums/BlitzMax Programming/Lists in BVM?
| ||
Does anyone know anything about adding BVM types to TLists created in BVM? |
| ||
Sorry... what is BVM? |
| ||
I haven't done it, but at first glance it seems bad form in terms of persistance. You can pass an exposed bvm list and loop/create a duplicate, but I think your better of just passing the host list and using that. |
| ||
What if I want to create my own custom type in BVM? I need to store it in a list. |
| ||
Ok, I think I misread your question. BVM has it's own list type {called TList actually}. Its available by importing the 'Core' module. You can look at its features by checking out: "../std_modules/bvmdoc/index.html" and looking at 'TList' But remember that this is totally BVM contained. You'll need some kind of custom clone function if you want to get any custom objects back into the host app. Are you looking reference these script types from the host? |
| ||
Is there a built-in BVM list? If not, how should objects be stored in BVM scripts? |
| ||
Sorry for the delay, I was on short vacations. GW is right, there is a TList type defined in core.bbm, the standard module that comes with BriskVM 2. It can hold any script object, and just like in BlitzMax, it can be iterated using "For... EachIn". To use it, you need to import this module by doing: Using "core.bbm" For a description of the type, read the docs pointer to you by GW. If you have more technical questions, I suggest posting them on the BriskVM forum. |