I am using DMD Beta 2.068.2 to compile DGui(https://bitbucket.org/dgui/dgui) and I have an error: ------ Build started: Project: DGui, Configuration: Debug Win32 ------ Building Debug\DGui.lib... C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1432): Error: not a property r1[0..pos].byUTF!char C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1432): Error: not a property r2.byUTF!char C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1233): Error: template instance std.path.chainPath!(char[], const(char)[], ) error instantiating C:\DEV\D\dmd2\windows\bin\..\..\src\phobos\std\path.d(1251): instantiated from here: buildPath!(const(char)[][]) dgui\application.d(213): instantiated from here: buildPath!char binary C:\DEV\D\dmd2\windows\bin\dmd.exe version v2.068.2 After chating a bit on freenode it seems -property is not supported anymore: [12:00] <foo> smartmobili: don't use "-property" flag [12:00] <foo> it never worked, and that's what causes error [12:01] <bar> it breaks UFCS does it? [12:01] <foo> it breaks alot of things, as it was never really finished [12:01] <foo> for our case, "dmd -property" yiled the exact error message smartmobili quoted [12:02] <bar> good catch
sample code to test: import std.path; void main () { string temp = "temppath"; temp = std.path.buildPath(temp, "boo.foo"); } it compiles without "-property", but gives errors with it: src/phobos/std/path.d(1432): Error: not a property r1[0..pos].byUTF!char src/phobos/std/path.d(1432): Error: not a property r2.byUTF!char src/phobos/std/path.d(1233): Error: template instance std.path.chainPath!(char[], const(char)[], ) error instantiating src/phobos/std/path.d(1251): instantiated from here: buildPath!(const(char)[][]) z10.d(5): instantiated from here: buildPath!char
Try 2.069 http://dlang.org/changelog/2.069.0.html#property-switch-deprecated
The example compiles with 2.069.