Re: [fpc-devel] MACRO - correct syntax?

2018-02-27 Thread Giuliano Colla
Il 25/02/2018 21:33, Mark Morgan Lloyd ha scritto: Easily put in the makefile Well I wouldn't say "Easily"!:'( I can live without parameter macros in Pascal like I did until now, but just for personal satisfaction I tried to get the Gnu Pascal

Re: [fpc-devel] MACRO - correct syntax?

2018-02-27 Thread Michael Schnell
On 25.02.2018 18:21, Giuliano Colla wrote: Well, just for sake of argument, it appears to me a rather drastic approach. While you can do really cute stuff with Macros in C, using the (or doing a) debugger for code that uses macros is a horrible PITA. Nonetheless it would be nice if there

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Mark Morgan Lloyd
On 25/02/18 18:15, Giuliano Colla wrote: Il 25/02/2018 18:34, Florian Klämpfl ha scritto: http://www.gnu-pascal.de/gpc/Preprocessor.html, nobody prevents people to run a preprocessor before> FPC gets the code. That's a constructive suggestion. Easily put in the makefile [DUCKS] :-) -- Mark

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Giuliano Colla
Il 25/02/2018 18:34, Florian Klämpfl ha scritto: http://www.gnu-pascal.de/gpc/Preprocessor.html, nobody prevents people to run a preprocessor before FPC gets the code. That's a constructive suggestion. If fpc doesn't implement an actual preprocessor, but macro expansion is part of the

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Florian Klämpfl
Am 25.02.2018 um 18:21 schrieb Giuliano Colla: > Il 25/02/2018 13:55, Florian Klämpfl ha scritto: > >>> To limit their use. > > Well, just for sake of argument, it appears to me a rather drastic approach. > > You may write other similar pages on stackoverflow, telling why Dereferencing > is

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Giuliano Colla
Il 25/02/2018 13:55, Florian Klämpfl ha scritto: To limit their use. Well, just for sake of argument, it appears to me a rather drastic approach. You may write other similar pages on stackoverflow, telling why Dereferencing is evil, Typecasting is evil, or why "Absolute" or the "with"

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Ozz Nixon
, February 25, 2018 3:17 AM To: FPC developers' list <fpc-devel@lists.freepascal.org> Cc: Sven Barth <pascaldra...@googlemail.com> Subject: Re: [fpc-devel] MACRO - correct syntax? Am 25.02.2018 03:01 schrieb "Ozz Nixon" <ozzni...@gmail.com <mailto:ozzni...@gmail.com

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Florian Klämpfl
Am 25.02.2018 um 13:31 schrieb Florian Klämpfl: > Am 25.02.2018 um 13:28 schrieb Giuliano Colla: >> Il 25/02/2018 13:15, Sven Barth via fpc-devel ha scritto: >> >>> Yes, we definitely feel good about this, because we don't *want* parameter >>> support in FPC's macro >>> handling. >> >> Maybe I'm

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Florian Klämpfl
Am 25.02.2018 um 13:28 schrieb Giuliano Colla: > Il 25/02/2018 13:15, Sven Barth via fpc-devel ha scritto: > >> Yes, we definitely feel good about this, because we don't *want* parameter >> support in FPC's macro >> handling. > > Maybe I'm obtuse, but I fail to grasp the reason why. > Can you

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Giuliano Colla
Il 25/02/2018 13:15, Sven Barth via fpc-devel ha scritto: Yes, we definitely feel good about this, because we don't *want* parameter support in FPC's macro handling. Maybe I'm obtuse, but I fail to grasp the reason why. Can you elaborate a bit more? Thanks Giuliano

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Sven Barth via fpc-devel
Am 25.02.2018 12:14 schrieb "Mark Morgan Lloyd" < markmll.fpc-de...@telemetry.co.uk>: On 25/02/18 10:30, Florian Klämpfl wrote: > Am 25.02.2018 um 11:12 schrieb Mark Morgan Lloyd:> On 25/02/18 02:15, Ozz > Nixon wrote:>> {$MACRO ON}>> {$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);}>> > Begin

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Mark Morgan Lloyd
On 25/02/18 10:30, Florian Klämpfl wrote: Am 25.02.2018 um 11:12 schrieb Mark Morgan Lloyd:> On 25/02/18 02:15, Ozz Nixon wrote:>> {$MACRO ON}>> {$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);}>> Begin   _CTASSERT(1,1,'Constant failed.');end.> > I don't believe parameters are supported :-(> Why so

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Florian Klämpfl
Am 25.02.2018 um 11:12 schrieb Mark Morgan Lloyd: > On 25/02/18 02:15, Ozz Nixon wrote: >> {$MACRO ON} >> {$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);} >> Begin   _CTASSERT(1,1,'Constant failed.');end. > > I don't believe parameters are supported :-( > Why so sad? They are not supported on purpose

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Mark Morgan Lloyd
On 25/02/18 02:15, Ozz Nixon wrote: {$MACRO ON} {$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);} Begin _CTASSERT(1,1,'Constant failed.');end. I don't believe parameters are supported :-( -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his

Re: [fpc-devel] MACRO - correct syntax?

2018-02-25 Thread Sven Barth via fpc-devel
Am 25.02.2018 03:01 schrieb "Ozz Nixon" : {$MACRO ON} {$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);} Begin _CTASSERT(1,1,'Constant failed.'); end. Macros with arguments are not supported. Regards, Sven ___ fpc-devel maillist -

[fpc-devel] MACRO - correct syntax?

2018-02-24 Thread Ozz Nixon
{$MACRO ON} {$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);} Begin _CTASSERT(1,1,'Constant failed.'); end. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel