Page 1 of 1

ExamineRuntime and Runtime extensions

Posted: Thu May 18, 2017 6:21 pm
by GPI
it would be nice, if something like ExamineRuntime() would be possible. With NextRuntimeEntry(), RuntimeEntryType() (#pb_integer, #pb_string, #pb_constant), RuntimeEntryName() and FinishRuntime)

Also Runtime for Structures/Interfaces would be nice

Code: Select all

runtime Structure s1
 i1.i;some commend
 i2.i
EndStructure
runtime Structure S2 extends S1
 i3.i
 i4.i
EndStructure
debug GetRuntimeString("S2",#false)
debug GetRuntimeString("S2,#true)
first one should return

Code: Select all

"Structure S2 extends S1"+chr(10)+"i3.i"+chr(10)+"i4.i"+chr(10)+"EndStructure"+chr(10)
second one should return

Code: Select all

"Structure S2"+chr(10)+"i1.i"+chr(10)+"i2.i"+chr(10)+chr(10)+"i3.i"+chr(10)+"i4.i"+chr(10)+"EndStructure"+chr(10)
Same for interface

Re: ExamineRuntime and Runtime extensions

Posted: Thu May 18, 2017 11:31 pm
by Lunasole
I like idea with runtime structures, but what's the point of examining (except maybe debug/doc gen purposes)?

Re: ExamineRuntime and Runtime extensions

Posted: Sun May 21, 2017 3:58 pm
by GPI
Lunasole wrote:I like idea with runtime structures, but what's the point of examining (except maybe debug/doc gen purposes)?
When you want to create a VTable for Objects, it is nice to "scan" an interface und search for the procedures (like <interfacename>_<interfacemember>). Structures are more than a bonus :)