On Mon, Feb 05, 2018 at 05:48:00AM +0000, FrankLike via Digitalmars-d-learn 
> Now,I can get the string from hex string in compile time,but how to
> get it in run time?
> How to get it in run time?
> Thanks.

        import std.conv;
        string hex = "900D1DEA";
        uint value = hex.to!uint(16);
        assert(value == 0x900D1DEA);


Be in denial for long enough, and one day you'll deny yourself of things you 
wish you hadn't.

Reply via email to