Maybe hex strings were invented in D1 when strings were
convertible to char[]. But today strings are an array of
immutable UFT-8, so I think this default type is now less useful:
void main() {
string data1 = xA1 B2 C3 D4; // OK
immutable(ubyte)[] data2 = xA1 B2 C3 D4; // error
}
On Thursday, October 18, 2012 01:58:25 bearophile wrote:
[snip]
You posted to the wrong list.
- Jonathan M Davis
Jonathan M Davis:
You posted to the wrong list.
- Jonathan M Davis
Right Jonathan, I am sorry :-) I will try again in the main D
newsgroup.
Bye,
bearophile