Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
May 19, 2014 [Issue 5909] Allow implicit conversion of hex strings to immutable(ubyte)[] and immutable(ubyte[N]) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5909 --- Comment #4 from bearophile_hugs@eml.cc --- If implicit conversions are not appreciated, then an alternative solution is to consider hex strings as ubyte array literals: pragma(msg, typeof(x"1a b2")); ==> immutable(ubyte)[] This avoids implicit conversions. In 99% of the cases you don't want that literal to produce a string, so this is useful. -- |
July 15, 2014 [Issue 5909] Allow implicit conversion of hex strings to immutable(ubyte)[] and immutable(ubyte[N]) or turn them into ubyte array literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5909 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Allow implicit conversion |Allow implicit conversion |of hex strings to |of hex strings to |immutable(ubyte)[] and |immutable(ubyte)[] and |immutable(ubyte[N]) |immutable(ubyte[N]) or turn | |them into ubyte array | |literals -- |
October 10, 2014 [Issue 5909] Allow implicit conversion of hex strings to immutable(ubyte)[] and immutable(ubyte[N]) or turn them into ubyte array literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5909 Marc Schütz <schuetzm@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schuetzm@gmx.net -- |
December 12, 2016 [Issue 5909] Allow implicit conversion of hex strings to immutable(ubyte)[] and immutable(ubyte[N]) or turn them into ubyte array literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5909 Shachar Shemesh <shachar@shemesh.biz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shachar@shemesh.biz -- |
August 22, 2020 [Issue 5909] Allow implicit conversion of hex strings to immutable(ubyte)[] and immutable(ubyte[N]) or turn them into ubyte array literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5909 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |schveiguy@yahoo.com Resolution|--- |WONTFIX --- Comment #5 from Steven Schveighoffer <schveiguy@yahoo.com> --- hex strings are deprecated. -- |
Copyright © 1999-2021 by the D Language Foundation