dirEntries() and exceptions

2017-11-24 Thread doc via Digitalmars-d-learn
I'm trying recursively find files, and have some trouble to catch exceptions if have no permission to read directory. [code] void main() { import std.file,std.stdio; auto farray = dirEntries("/tmp", "*.{d,py,pl,sh}", SpanMode.breadth); foreach (f; farray){writeln(f);}} [/code]

Re: Head Const

2016-02-18 Thread Doc via Digitalmars-d
On Thursday, 18 February 2016 at 11:57:59 UTC, Jonathan M Davis wrote: The more I look at it, the more I'm inclined to think that introducing @mutable for member variables with a corresponding, required attribute on the struct or class it's in (e.g. @has_mutable) is really what we need to