ExamineRuntime and Runtime extensions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

ExamineRuntime and Runtime extensions

Post 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
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: ExamineRuntime and Runtime extensions

Post by Lunasole »

I like idea with runtime structures, but what's the point of examining (except maybe debug/doc gen purposes)?
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: ExamineRuntime and Runtime extensions

Post 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 :)
Post Reply