Re: [fpc-pascal] Label

2012-08-09 Thread Sven Barth
Am 09.08.2012 17:49, schrieb Jonas Maebe: It's not "my style of programming". I've never used resourcestrings in my life (because I've never worked on a multilingual program, not because I've used something else instead). The compiler is a multilingual program and uses a different mechanism th

Re: [fpc-pascal] Label

2012-08-09 Thread Jonas Maebe
Rainer Stratmann wrote on Thu, 09 Aug 2012: Am Thursday 09 August 2012 17:18:09 schrieb Jonas Maebe: I would really recommend you (again) to use resourcestrings. You say that is not possible and that is not possible (or someone can say: you don't want to go deep in it). You noticed yours

Re: [fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 17:18:09 schrieb Jonas Maebe: > I would really recommend you (again) to use resourcestrings. You say that is not possible and that is not possible (or someone can say: you don't want to go deep in it). Beyond that you recommend me your style of programming. I see ever

Re: [fpc-pascal] Label

2012-08-09 Thread Jonas Maebe
Rainer Stratmann wrote on Thu, 09 Aug 2012: If you have a label in a procedure and declare this procedure as inline procedure then it gives also problems (Fatal: compilation aborted!). That is the generic error message that is shown at the end of every failed compilation. I guess you mean t

Re: [fpc-pascal] Label

2012-08-09 Thread Thomas Schatzl
Hi, On 08/ 9/12 05:08 PM, Rainer Stratmann wrote: Just because it sounds that way: is it possible inside the procedure? Yes, if the label declaration is also inside the procedure. You can only take the address of a globally declared label iff a) the label is also defined in the global scope ("b

Re: [fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 16:52:40 schrieb Jonas Maebe: > Sven Barth wrote on Thu, 09 Aug 2012: > > Am 09.08.2012 15:35, schrieb Jonas Maebe: > >> Rainer Stratmann wrote on Thu, 09 Aug 2012: > >>> Is it possible to get the adress of a label in a procedure? > >> > >> Not outside that procedure, no.

Re: [fpc-pascal] Label

2012-08-09 Thread Jonas Maebe
Sven Barth wrote on Thu, 09 Aug 2012: Am 09.08.2012 15:35, schrieb Jonas Maebe: Rainer Stratmann wrote on Thu, 09 Aug 2012: Is it possible to get the adress of a label in a procedure? Not outside that procedure, no. Just because it sounds that way: is it possible inside the procedure?

Re: [fpc-pascal] Label

2012-08-09 Thread Sven Barth
Am 09.08.2012 15:35, schrieb Jonas Maebe: Rainer Stratmann wrote on Thu, 09 Aug 2012: Is it possible to get the adress of a label in a procedure? Not outside that procedure, no. Just because it sounds that way: is it possible inside the procedure? Regards, Sven __

Re: [fpc-pascal] Label

2012-08-09 Thread Jonas Maebe
Rainer Stratmann wrote on Thu, 09 Aug 2012: Am Thursday 09 August 2012 15:35:54 schrieb Jonas Maebe: Rainer Stratmann wrote on Thu, 09 Aug 2012: > Is it possible to get the adress of a label in a procedure? Not outside that procedure, no. Would it be possible to chage it, to get this inform

Re: [fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Am Thursday 09 August 2012 15:35:54 schrieb Jonas Maebe: > Rainer Stratmann wrote on Thu, 09 Aug 2012: > > Is it possible to get the adress of a label in a procedure? > > Not outside that procedure, no. Would it be possible to chage it, to get this information? May be it is only some kind of acci

Re: [fpc-pascal] Label

2012-08-09 Thread Jonas Maebe
Rainer Stratmann wrote on Thu, 09 Aug 2012: Is it possible to get the adress of a label in a procedure? Not outside that procedure, no. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/

[fpc-pascal] Label

2012-08-09 Thread Rainer Stratmann
Is it possible to get the adress of a label in a procedure? label mark1; procedure s; begin mark1: end; var p : pointer; begin p := @mark1; // does not work; end; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.