Re: [fpc-pascal] Strange syntax in raising exceptions

2009-07-15 Thread Graeme Geldenhuys
Paul Ishenin wrote: will be useless. Who wants to know that it was raised in Warn function? Better to assign a caller address to that exception. For this we have 'at' keyword. Thanks Paul! Your explanation makes perfect sense. Amazingly enough, I have been using exceptions for many years, and

Re: [fpc-pascal] Strange syntax in raising exceptions

2009-07-15 Thread Paul Ishenin
Graeme Geldenhuys wrote: Hi, While porting DUnit2 to Free Pascal I came across the following code. I have never seen syntax like that, yet it is accepted by FPC and Delphi compilers. Is this documented in FPC docs? What does the '... at ' do? Unfortunately I don't have any docs (fpc, delp

[fpc-pascal] Strange syntax in raising exceptions

2009-07-15 Thread Graeme Geldenhuys
Hi, While porting DUnit2 to Free Pascal I came across the following code. I have never seen syntax like that, yet it is accepted by FPC and Delphi compilers. Is this documented in FPC docs? What does the '... at ' do? Unfortunately I don't have any docs (fpc, delphi or kylix) available here o