[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Strange Operators (Was: Why I leave Lua)
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Thu, 10 Jul 2014 07:07:03 +0000
> GCC C has ?:
>
> z = x?:y;
>
> It's just a hack on the ternary operator, but behaves precisely the same
> way
> in that x will only be evaluated once. GCC has supported this since at
> least
> 2.95, circa 1999.
BTW: this has been proposed for standardization in C++:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4120.pdf
- Jörg
- References:
- Re: [ANN] Lua 5.3.0 (work3) now available, Leo Razoumov
- Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), David Demelier
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Michel Martens
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Enrico Colombini
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Tim Hill
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Michel Martens
- Strange Operators (Was: Why I leave Lua), Paige DePol
- Re: Strange Operators (Was: Why I leave Lua), Coroutines
- Re: Strange Operators (Was: Why I leave Lua), Coroutines
- Re: Strange Operators (Was: Why I leave Lua), William Ahern