Variables address (Reformulated)

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

Sorry everyone,

I found a message from Robert Craig that repudiate the idea of
getting a euphoria variable address, as he say:

"I firmly believe this would be a very bad thing to do"

So, considering that, I want to reformulate my question.

Can anyone give me an idea of an efficient method to create something
like the ex.err file in a C translated program?

My current solution is to set a global variable with the
values of some relevant variables. I do that in many parts of the code
where I "feel" that a crash may occur, let´s put in another way...
any critical block in the code is preceded by a call to a routine that
set my global variable with some values passed as parameters,
usually variables used in the "critical block".

So, when a crash occur, another routine, designated by crash_routine(),
takes control and just prints out the values from my global variable.

What about that? Watch out SUN J2EE... just kidding,
I know it is a "very" amateur approach.

So, any creative ideas.

Thank you all,
André Drummond

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

Search



Quick Links

User menu

Not signed in.

Misc Menu