hex strings

spir denis.spir at gmail.com
Wed Jan 26 15:57:15 PST 2011


On 01/26/2011 07:25 PM, Ellery Newcomer wrote:
> just out of curiosity, does anyone use these and actually mean them to be
> strings? It seems like I'm invariably writing
>
> cast(ubyte[]) x"..."

Super-nice for universal text. Anything you can't type in because of 
non-illimited keyboard size...

Actually had a similar idea, except using in-string delimiters #...# instead of 
a prefix:
	"#xx xxx xxxx xxx#"
Adds one char compared to D syntax, but allows partially hex-coded string:
	"blah #xx xxxx xxx# blah"

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d-learn mailing list