[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language)
- From: Jay Carlson <nop@...>
- Date: Mon, 19 Aug 2013 10:38:34 -0400
On Aug 19, 2013 3:51 AM, "Hao Wu" <wuhao.wise@gmail.com> wrote:
> While I couldn't remember where I read it from, but stream operator overloading didn't turn
> out to be a so-good solution because implicit type conversion could give you the "wrong"
> result
I don't remember where this came from either:
unsigned char c = 0xf8;
/* c may have the high bit set; mask it off to get the ASCII */
/* careful with that axe */
cout << c&0x7f;
- References:
- [OT] Lua community and Go language, Lorenzo Donati
- Re: [OT] Lua community and Go language, Sven Olsen
- Re: [OT] Lua community and Go language, Gé Weijers
- Re: [OT] Lua community and Go language, Miles Bader
- Re: [OT] Lua community and Go language, Craig Barnes
- Re: [OT] Lua community and Go language, Rena
- Re: [OT] Lua community and Go language, Lorenzo Donati
- Re: [OT] Lua community and Go language, steve donovan
- printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Jay Carlson
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), William Ahern
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Jay Carlson
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Andres Perera
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Jay Carlson
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Andres Perera
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Tim Hill
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), steve donovan
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Coda Highland
- Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language), Hao Wu