digitalmars.D.bugs - [Issue 3318] New: Rebindable.get is not accessible
- d-bugmail puremagic.com (29/29) Sep 14 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3318
- d-bugmail puremagic.com (10/10) Oct 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3318
- d-bugmail puremagic.com (17/17) Aug 31 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3318
- d-bugmail puremagic.com (11/11) Oct 02 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3318
- d-bugmail puremagic.com (15/15) Oct 02 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3318
- d-bugmail puremagic.com (6/6) Oct 03 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3318
- d-bugmail puremagic.com (6/6) Oct 04 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3318
http://d.puremagic.com/issues/show_bug.cgi?id=3318
Summary: Rebindable.get is not accessible
Product: D
Version: 2.032
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: ludwig informatik.uni-luebeck.de
23:18:24 PDT ---
Rebindable.get is an alias for Rebindable.original, which in turn is private:
---
import std.typecons;
class C {}
void main(){
Rebindable!(const(C)) test;
const(C) testCopy = test.get;
}
---
test.d(7): Error: struct std.typecons.Rebindable!(const(C)).Rebindable member
original is not accessible
test.d(7): Error: struct std.typecons.Rebindable!(const(C)).Rebindable member
original is not accessible
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 14 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3318
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |andrei metalanguage.com
AssignedTo|nobody puremagic.com |andrei metalanguage.com
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3318
Simen Kjaeraas <simen.kjaras gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|]Rebindable.get is not |[PATCH]Rebindable.get is
|accessible |not accessible
PDT ---
This is the fix - replace this line(746 in 2.048) in std/typecons.d:
alias original get;
with this:
property
ref T get( ) {
return original;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 31 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3318
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
19:21:53 PDT ---
http://www.dsource.org/projects/phobos/changeset/2080
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3318
Jonathan M Davis <jmdavisProg gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg gmx.com
PDT ---
What's the point of
alias get this;
in the fix? I would have thought that that would conflict with the get property
function. It would seem to make it so that get would either give you the type
that Rebindable!() holds or Rebindable!() itself which would appear to
effectively overload get on the return type.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 02 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3318 12:09:35 PDT --- The alias makes Rebindable!T a near-subtype of T. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 03 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3318 06:15:59 PDT --- *** Issue 4978 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 04 2010









d-bugmail puremagic.com 