Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #6947

Re: Array implementation of Stack

From Patrick Scheible <kkt@zipcon.net>
Newsgroups comp.lang.c
Subject Re: Array implementation of Stack
References <4df9d41f$0$308$14726298@news.sunsite.dk> <4dfceef1$0$44207$4fafbaef@reader1.news.tin.it> <4e05aa11$0$15671$4fafbaef@reader2.news.tin.it> <627ecf99-e884-4bd5-804c-5b21f1d7422d@l9g2000yqk.googlegroups.com>
Date 2011-06-25 16:29 -0700
Message-ID <86mxh5v6au.fsf@zipcon.net> (permalink)
Organization The Zip Connection (zipcon.net)

Show all headers | View raw


"Kleuskes & Moos" <kleuske@xs4all.nl> writes:

> On Jun 25, 11:29 am, "io_x" <a...@b.c.invalid> wrote:
>
>> // macro for function
>> #define  P  printf
>>
>> // macro for keyWords
>> #define G  goto
>> #define R  return
>> #define W  while
>> #define F  for
>> #define T  template
>> #define TN typename
>
> The above macro's ought to be taken out and shot.

Especially G for goto.  If you use gotos enough to need a macro for
them, you're doing something very, very wrong.

But all of them should go.  Too cryptic to expect third parties to read,
not cryptic enough to win the obfuscated C contest.

-- Patrick

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-06-18 20:32 +0200
  Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-06-25 09:02 +0200
    Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-06-26 07:25 +0200
      Re: Array implementation of Stack pete <pfiland@mindspring.com> - 2011-06-26 02:11 -0400
        Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-06-26 19:08 +0200
      Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-07-07 06:59 +0200
        Re: Array implementation of Stack Shao Miller <sha0.miller@gmail.com> - 2011-07-07 19:25 -0400
          Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-07-08 20:06 +0200
  Re: Array implementation of Stack "io_x" <a@b.c.invalid> - 2011-06-25 11:29 +0200
    Re: Array implementation of Stack "Kleuskes & Moos" <kleuske@xs4all.nl> - 2011-06-25 03:04 -0700
      Re: Array implementation of Stack Ian Collins <ian-news@hotmail.com> - 2011-06-25 22:23 +1200
      Re: Array implementation of Stack Patrick Scheible <kkt@zipcon.net> - 2011-06-25 16:29 -0700

csiph-web