more for the wish list

new topic     » topic index » view thread      » older message » newer message

While we are suggesting things,, i have another wish which seems at first
glance to be useless. Access to the procedure/function call stack. This way
a program can check it's own flow, to see how it got to where it is, and if
possible to change the stack, to have more control over where it backs up
to. I don't remember why this is on my pascal gripe list, it seems there is
a way to get this data covertly, and it's possible to record it in a user
record, but there wasn't a clean way to alter it, to skip over a lot of code
when returning to the original calling line. I think i was getting really
really deep into nested calls, with a huge call stack ( the debugger shows
the call stack ), and wanted to pop straight back to the place that started
the recursion, rather than returning one procedure at a time, and testing at
each return to see if i should return to that calling procedure, and testing
at that line to see if i should return again, and .. ad infinitum. This
could also allow a procedure to see who called it, to allow the calling proc
permission to use it or not. It would also allow a user-defined form of
function overloading in a way, dealing with passed parms in a way dependant
on who passed them. Or seeing if it called itself and how many times. Put
this one at the bottom of the wish list, it's a luxury, i suppose.

Kat,
rambling.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu