[Issue 8490] Global property calls do not work with pointers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 29 15:11:32 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8490
art.08.09 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |art.08.09 at gmail.com
--- Comment #2 from art.08.09 at gmail.com 2012-08-29 15:11:31 PDT ---
(In reply to comment #1)
> This is related to pointers not just auto expressions:
>
> struct Foo { }
> @property bool isTrue(Foo foo) { return true; }
>
> void main()
> {
> Foo* foo = new Foo;
> bool b = foo.isTrue;
> }
@property bool isTrue(ref Foo foo) { return true; }
should probably work, but the by-value version might be too dangerous to be
allowed...
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list