Mail Archives: djgpp/1997/12/16/18:01:01
bill AT cafe DOT net (Kaz Kylheku) wrote:
>Defining begin to stand for { and end to stand for } buys you absolutely nothing.
Don't agree, but I won't repeat all arguments again. From a focal point of
view, { } are easily "mistaken" for ().
>All you are doing is polluting the macro namespace. If some header file uses 'begin'
>or 'end' for any purpose, it will break. Macros should not be used frivolously.
>If you must define macros in some module's header file, they should be prefixed
>in such a way that they are identified with the module. An identifier such as 'end'
>is a poor naming choice for a globally used macro.
> #include "pascal.h"
It has it's own header file, called easyc.h
> static char *fill(char *beg, char *end); /* oops */
After tens of compilers and platforms I've never encountered the problem.
"token", yes. "begin", never.
Hans
================
"First make it work, then improve it."
Visit our website! http://visitweb.com/hansoft
*** Home of the 4tH compiler! ***
- Raw text -