On 5 Apr 00, at 19:07, Frank Heckenbach wrote:
Hi,
as you might know, GPC supports "defines" for two purposes, as conditionals for `ifdef' etc. (like some other Pascal compilers do), and as macros (like the C preprocessor).
However, currently they're case-sensitive (like in C) which is different from other Pascal compilers (e.g., Borland Pascal) and generally not very "Pascalish", so I want to introduce case-insensitive defines. But there are also a few valid uses for case-sensitive defines, so I'd like to keep both.
Actually, I've already done most of the work. The question that remains is about the syntax. Currently, GPC understands:
#define foo -- inherited from the C preprocessor, but not recommended
Why not use {$define} for case insensitive and #define for case sensitive ? Since case-sensitivity is a C thing, we might as well keep #define (which is also a C thing) for that purpose. Advantage? It avoids the introduction of new constructs.
Best regards, The Chief ----- Dr Abimbola A Olowofoyeku (The African Chief) Email: African_Chief@bigfoot.com Author of Chief's Installer Pro v5.22 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm