[Issue 8446] Can't use 'this' pointer in pure member function?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 8 22:36:17 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8446
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-08 22:36:15 PST ---
(In reply to comment #0)
This is a trivial bug of the original code.
> @property auto byInterval() pure const
> {
> static struct IntervalRange
> {
this(in RleBitSet set_) // should be pure
> {
> }
> }
return IntervalRange(this); // needs pure constructor
> }
--
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