[fpc-pascal] Get all caller adresses of a procedure/function
Rainer Stratmann
RainerStratmann at t-online.de
Tue Aug 7 09:22:29 CEST 2012
Am Tuesday 07 August 2012 00:02:02 schrieb Martin:
> I still do not understand what is so special about the caller address?
> Furthermore, you said yourself, you do not need it. You can also live
> withe a "number that the compiler generates at compilation time".
With all caller adresses OR all numbers (see down) I have the whole amount of
snippets that I want to have.
The caller adress is a unique identifier.
A handle.
> so if you had
> p(next_compile_time_number, 'text');
I do not write something about 'next_compile_time_number'.
My words were 'incremented counter at compiletime'.
That means the counter increases immediately after every occurence in the
sourcecode.
> then all p gets is 109, 'text'
> if that 109 does help, why not the address of the 1st char?
>
>
> ---
> I know there is still something about your idea that I havent got....
> which makes this a bit hard.
I want to have all caller adresses of s() before s() is called.
> Lets take a step back:
>
> Why do you not just store all snippets in a stringlist, if p saw them?
I do it.
But I need the information which snippet was not called yet.
That is all I want.
> (speed should not be a reason, that can be dealt with)
>
> You can always extend the list to store additional info per field.
Yes, I know :-)
>
> -----------
> ps
> foo = placeholder
ok thanks.
More information about the fpc-pascal
mailing list