Re: [fpc-pascal] Re: Linked list constant

2013-03-19 Thread Sven Barth
Am 19.03.2013 09:56, schrieb Martin Schreiber: On Tuesday 19 March 2013 09:38:43 Sven Barth wrote: Delphi has {$J-} in order to set them readonly. Do you know whether Delphi has by default $J+ or $J-? {$J+} in Delphi 7. Then we don't need to change the default :) Regards, Sven _

Re: [fpc-pascal] Re: Linked list constant

2013-03-19 Thread Martin Schreiber
On Tuesday 19 March 2013 09:38:43 Sven Barth wrote: > > > > Delphi has {$J-} in order to set them readonly. > > Do you know whether Delphi has by default $J+ or $J-? > {$J+} in Delphi 7. > > Another problem with Free Pascal in this context is that it is AFAIK not > > possible to define forward typ

Re: [fpc-pascal] Re: Linked list constant

2013-03-19 Thread Sven Barth
Am 19.03.2013 09:27, schrieb Martin Schreiber: On Tuesday 19 March 2013 09:06:31 leledumbo wrote: Really? No gain in the beloved readability? Not for me, I always initialize code in "executable" section, keeping the declaration section clean. That's what "readable" to me. And it seems to me a

Re: [fpc-pascal] Re: Linked list constant

2013-03-19 Thread Martin Schreiber
On Tuesday 19 March 2013 09:06:31 leledumbo wrote: > > Really? No gain in the beloved readability? > > Not for me, I always initialize code in "executable" section, keeping the > declaration section clean. That's what "readable" to me. > > > And it seems to me a "const" should not be changed by cod

[fpc-pascal] Re: Linked list constant

2013-03-19 Thread leledumbo
> Really? No gain in the beloved readability? Not for me, I always initialize code in "executable" section, keeping the declaration section clean. That's what "readable" to me. > And it seems to me a "const" should not be changed by code. ;-) Even if it's allowed, you're declaring typed constan

Re: [fpc-pascal] Re: Linked list constant

2013-03-18 Thread Martin Schreiber
On Monday 18 March 2013 14:27:25 leledumbo wrote: > > Is it possible to make a forward declaration for a0? > > No, forward type declaration is possible (with the restriction that the > type must be based on pointer and the real declaration starts in the same > type block), but forward variable decl

[fpc-pascal] Re: Linked list constant

2013-03-18 Thread leledumbo
> Is it possible to make a forward declaration for a0? No, forward type declaration is possible (with the restriction that the type must be based on pointer and the real declaration starts in the same type block), but forward variable declaration is not. You won't gain much benefit from doing the