D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15265 - Phobos doesn't work with -property
Summary: Phobos doesn't work with -property
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P3 regression
Assignee: No Owner
URL: http://dlang.org/
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-30 11:12 UTC by Vincent R
Modified: 2015-10-31 01:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Vincent R 2015-10-30 11:12:33 UTC
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
Comment 1 Ketmar Dark 2015-10-30 11:17:21 UTC
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
Comment 3 Jonathan M Davis 2015-10-31 01:46:15 UTC
The example compiles with 2.069.