www.digitalmars.com         C & C++   DMDScript  

c++ - Simple question

reply roland <--rv ronetech.com> writes:
Hi,

With DM the prefix for a binary integer constant is 0b:

unsigned char aBinaryValue = 0b11010;

My question is: is this the standard or is it DM specific ?

Thanks

roland

PS1: I can't find my old Kerighan & Ritchie book,
PS2: It's to help somebody. No there is little chance I switch to an 
other compiler until I die except if I completely switch to Linux...
Nov 05 2003
next sibling parent reply "Walter" <walter digitalmars.com> writes:
It's DMC specific. As far as I know, no other compiler does this.

"roland" <--rv ronetech.com> wrote in message
news:bobd7c$4i8$1 digitaldaemon.com...
 Hi,

 With DM the prefix for a binary integer constant is 0b:

 unsigned char aBinaryValue = 0b11010;

 My question is: is this the standard or is it DM specific ?

 Thanks

 roland

 PS1: I can't find my old Kerighan & Ritchie book,
 PS2: It's to help somebody. No there is little chance I switch to an
 other compiler until I die except if I completely switch to Linux...
Nov 05 2003
parent roland <--rv ronetech.com> writes:
Thanks

roland :)


Walter a écrit :
 It's DMC specific. As far as I know, no other compiler does this.
 
 "roland" <--rv ronetech.com> wrote in message
 news:bobd7c$4i8$1 digitaldaemon.com...
 
Hi,

With DM the prefix for a binary integer constant is 0b:

unsigned char aBinaryValue = 0b11010;

My question is: is this the standard or is it DM specific ?

Thanks

roland

PS1: I can't find my old Kerighan & Ritchie book,
PS2: It's to help somebody. No there is little chance I switch to an
other compiler until I die except if I completely switch to Linux...
Nov 06 2003
prev sibling parent reply "Luna Kid" <lunakid neuropolis.org> writes:
Sorry to ask stuff like this here, but my
ISP does not have a news server and I couldn't
quickly find a public one I could use.

How could I still access the C++ NGs? Any tips?

Thanks,
Sz.
Nov 06 2003
next sibling parent "Luna Kid" <lunakid neuropolis.org> writes:
Ehh, dammit, sorry, I hit Reply instead of New post... :-//


"Luna Kid" <lunakid neuropolis.org> wrote in message
news:bodiur$d3p$1 digitaldaemon.com...
 Sorry to ask stuff like this here, but my
 ISP does not have a news server and I couldn't
 quickly find a public one I could use.

 How could I still access the C++ NGs? Any tips?

 Thanks,
 Sz.
Nov 06 2003
prev sibling next sibling parent reply Jan Knepper <jan smartsoft.us> writes:
Don't know what you are asking, but this post of yours *is* in the 
Digital Mars C++ [N]ews [G]roup.

Your ISP just has to allow you to use Internet newsgroups, which seems 
like they do.



Luna Kid wrote:
 Sorry to ask stuff like this here, but my
 ISP does not have a news server and I couldn't
 quickly find a public one I could use.
 
 How could I still access the C++ NGs? Any tips?
 
 Thanks,
 Sz.
 
 
-- ManiaC++ Jan Knepper
Nov 06 2003
parent "Luna Kid" <lunakid neuropolis.org> writes:
 Don't know what you are asking, but this post of yours *is* in the
 Digital Mars C++ [N]ews [G]roup.
Thanks, Jan, I was referring to the public C++ Usenet NG, not the DM C++ NG on your server. (Please see the Subject. ;) ) Later, Sz.
Nov 06 2003
prev sibling parent reply Christof Meerwald <cmeerw web.de> writes:
On Thu, 6 Nov 2003 14:49:46 +0100, Luna Kid wrote:
 Sorry to ask stuff like this here, but my
 ISP does not have a news server and I couldn't
 quickly find a public one I could use.

 How could I still access the C++ NGs? Any tips?
See http://news.individual.net bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Nov 06 2003
parent "Luna Kid" <lunakid neuropolis.org> writes:
Very cool, thanks!

Cheers,
Sz.


"Christof Meerwald" <cmeerw web.de> wrote in message
news:bodrdr$p67$1 digitaldaemon.com...
 On Thu, 6 Nov 2003 14:49:46 +0100, Luna Kid wrote:
 Sorry to ask stuff like this here, but my
 ISP does not have a news server and I couldn't
 quickly find a public one I could use.

 How could I still access the C++ NGs? Any tips?
See http://news.individual.net bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Nov 06 2003