Unfortunately, these restrictions make it hard to implement F# style Type Providers. Though honestly the filesystem one is not nearly as annoying as the inability to reinterpret-cast.
Re:Ownership and Borrowing in D
by WalterBright on Tuesday July 16, 2019 @05:27AM
(#20448625)
That's fine with me. I don't want to make the cross site scripting mistake.
Which happen to be currently broken on modern .NET runtimes because it wasn't done on a clean way apparently.
couldn't you just link to a c file in the same dir then use that to read up the file tree. I would be interested to know how D would prevent this.
Re:Ownership and Borrowing in D
by WalterBright on Tuesday July 16, 2019 @05:16AM
(#20448585)
D files don't #include .c files.
This is to prevent the use of the D compiler as a malware target by sending it specially crafted source code to compile.