Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Alexander Klenin
On Mon, Mar 2, 2009 at 07:34, Daniël Mantione wrote: > This is a debate that has been held quite a few times :) If you look at > typed consts from the point of view what a mathematical constant is, yes, > it's completely absurd that you can write to them. >From _mathematical_ point of view assign

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Daniël Mantione
Op Mon, 2 Mar 2009, schreef Alexander Klenin: On Mon, Mar 2, 2009 at 03:16, Daniël Mantione wrote: Making typed constants writeable has been a disputed feature of the Borland dialect, I agree with that, but fact of the matter is they are writeable and thus cannot form a constant expression.

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-01 Thread Florian Klaempfl
ABorka schrieb: > Sorry guys, I knew I should have called them service packs, not patches :) > > In the future I would like to do it in the right way, but I'm not > exactly sure how. Lets say I check out the latest SVN and make some > changes in a few files in /FCL-web/ . > I generate a patch file

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-01 Thread ABorka
Sorry guys, I knew I should have called them service packs, not patches :) In the future I would like to do it in the right way, but I'm not exactly sure how. Lets say I check out the latest SVN and make some changes in a few files in /FCL-web/ . I generate a patch file which contains the diff

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Alexander Klenin
On Mon, Mar 2, 2009 at 03:16, Daniël Mantione wrote: > Making typed constants writeable has been a disputed feature of the Borland > dialect, I agree with that, but fact of the matter is they are writeable and > thus cannot form a constant expression. The fact that there exists a $J > directive d

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Daniël Mantione
Op Mon, 2 Mar 2009, schreef Alexander Klenin: Since issue http://bugs.freepascal.org/view.php?id=13256 was marked resolved, I think this is quite reasonable to expect this to work. The writeability of constants is IMNSHO just an ugly leftover from Delphi history, and should be disabled in _bot

Re: [fpc-devel] Arbitrary-precision arithmetic unit

2009-03-01 Thread m2
Alexander Klenin a écrit : On Sun, Mar 1, 2009 at 07:15, m2 wrote: Alexander Klenin a écrit : So, should I write one or did I just not searched in the right place? There is my NX library (still alpha) at htpp://www.ellipsa.net/ Now, this code is much more pleasant to read ;-) A few questio

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Jonas Maebe
On 01 Mar 2009, at 16:16, Jonas Maebe wrote: On 01 Mar 2009, at 15:58, Alexander Klenin wrote: On Mon, Mar 2, 2009 at 00:47, Jonas Maebe wrote: This depends on a mode switch. Use {$j-} to turn off the ability to write to typed constants. Maybe it's off by default in your version of De

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Jonas Maebe
On 01 Mar 2009, at 15:58, Alexander Klenin wrote: On Mon, Mar 2, 2009 at 00:47, Jonas Maebe wrote: This depends on a mode switch. Use {$j-} to turn off the ability to write to typed constants. Maybe it's off by default in your version of Delphi. I know. I argued that it should be off by

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Alexander Klenin
On Mon, Mar 2, 2009 at 00:47, Jonas Maebe wrote: >> Is rejected by Delphi, but compiled by FPC, which is a compatibility >> bug in itself. > > This depends on a mode switch. Use {$j-} to turn off the ability to write to > typed constants. Maybe it's off by default in your version of Delphi. I know

Re: [fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Jonas Maebe
On 01 Mar 2009, at 15:29, Alexander Klenin wrote: I think this is quite reasonable to expect this to work. The writeability of constants is IMNSHO just an ugly leftover from Delphi history, and should be disabled in _both_ delphi and objfpc modes: {$IFDEF FPC}{$MODE DELPHI}{$ENDIF} const x: in

[fpc-devel] Variable can not be initialized by named constant

2009-03-01 Thread Alexander Klenin
Since issue http://bugs.freepascal.org/view.php?id=13256 was marked resolved, I can not add comments, so I'd like to discuss it here. Original report claimed that code const c: SomeType = ; var y: t = c; begin end. Works for primitive types, but not the complex ones. This was an error on my part

Re: [fpc-devel] Arbitrary-precision arithmetic unit

2009-03-01 Thread Alexander Klenin
On Sun, Mar 1, 2009 at 20:07, Florian Klaempfl wrote: >> 3) Finally, and relevantly for this list, >>   should something like this be included into FPC? > Imo in principle, yes, but: > - simpler than NX library in the sense of less functionally, putting > something like NX library in FPC is too m

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-01 Thread Florian Klaempfl
> > So next time (not this time, we're already on it now) provide small > patches if you can and try not to include old patches into new ones. > Although I do admit that that's more work, that way we can apply faster > and that way it's easier for you to make new changes... If one has more patche

Re: [fpc-devel] Arbitrary-precision arithmetic unit

2009-03-01 Thread Florian Klaempfl
Alexander Klenin schrieb: > 3) Finally, and relevantly for this list, > should something like this be included into FPC? Imo in principle, yes, but: - simpler than NX library in the sense of less functionally, putting something like NX library in FPC is too much imo. - cross platform - FPC rtl

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-01 Thread Joost van der Sluis
Op zaterdag 28-02-2009 om 22:06 uur [tijdzone -0800], schreef ABorka: > I posted the following patch as > http://bugs.freepascal.org/view.php?id=13254 > > (includes the changes posted in 13250 and 13228 too) It takes soo long before the patches are applied because they are too large. ;) Now you

Re: [fpc-devel] Patch for FCL-web; bug fixes and improvements for CGI and Apache applications

2009-03-01 Thread Michael Van Canneyt
On Sat, 28 Feb 2009, ABorka wrote: > Hi, > > I posted the following patch as > http://bugs.freepascal.org/view.php?id=13254 > > (includes the changes posted in 13250 and 13228 too) I am looking at the patch and will apply it ASAP. Michael. ___ fpc-