chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Fix various Haiku issues


From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] Fix various Haiku issues
Date: Sun, 10 Nov 2013 16:13:30 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

Peter Bex scripsit:

> - fast_read_string_from_file defined variables after other statements;
> this is not accepted by GCC 2, which Haiku still uses as main compiler

More to the point, it is not Standard Cxx for any value of xx except
"++".  :-)  We should avoid it, particularly as the workarounds are easy:
move the declaration up in its block, or create a new block, like this:

foo() {
  int a = 32;
  a++;
  {
    int b = a + 5
    do_something(b);
  }
}

-- 
Her he asked if O'Hare Doctor tidings sent from far     John Cowan
coast and she with grameful sigh him answered that      http://ccil.org/~cowan
O'Hare Doctor in heaven was. Sad was the man that word  address@hidden
to hear that him so heavied in bowels ruthful.  All
she there told him, ruing death for friend so young,    James Joyce, Ulysses
algate sore unwilling God's rightwiseness to withsay.   "Oxen of the Sun"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]