Release D 2.068.0

BBasile via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Aug 11 04:33:49 PDT 2015


On Monday, 10 August 2015 at 08:48:52 UTC, Martin Nowak wrote:
> See the changelog for more details. 
> http://dlang.org/changelog.html#2.068.0

Something that's not obvious about phobos `hexString` CT 
template, it's not reflected in the DDOC, but it works with the 
`import` expression, and i think it was the primary goal, for 
example if you have an hex dump that's likely to represent some 
ASCII chars, in a file named file.txt:

---
import std.conv;
writeln( hexString!(import("file.txt")));
---

Coedit users can use this easily because the folder of a runnable 
module is always added to the string import path (-J). For 
example they just have to put the dump files into the folder 
where stand the script...et voilĂ  "compile file & run" works 
directly without error about the import() folder.


More information about the Digitalmars-d-announce mailing list