Re: Signed Hex Values

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

A proposed change ...

Signed Hex Values

Why is this a good idea? What's the advantage, etc ...

If adopted, following the same logic, we'd also have to allow the following combinations ...

+#-FFFFFFFF  -- -1 
-#-FFFFFFFF  -- +4294967295 
+#+FFFFFFFF  -- +4294967295 
-#+FFFFFFFF  -- -1 
petelomax said...

The #- directive triggers a compilation error if the following hexadecimal constant is not 2, 4, or 8 characters, or 16 in 64-bit code.

Why have this restriction?

And what about binary literals and hex values inside strings?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu