www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2400] New: return const proposals

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2400

           Summary: return const proposals
           Product: D
           Version: unspecified
          Platform: All
               URL: http://www.digitalmars.com/webnews/newsgroups.php?art_gr
                    oup=digitalmars.D&article_id=76886
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: terranium yandex.ru


This RFE was extracted from bug 2094 (see comment #6).

 we expect to get invariant data from invariant object.

Then define an invariant function.

This RFE is aimed at eliminating code duplication.
 Const is the equalizer, and it's perfectly
 acceptable to get invariant data as const.

Not quite perfectly.
 It doesn't mean that if the data is invariant, the
 function magically returns invariant.

But we still want some magic. --
Oct 08 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2400





------- Comment #1 from schveiguy yahoo.com  2008-10-08 12:31 -------
My proposal: bug 1961


-- 
Oct 08 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2400


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #2 from yebblies <yebblies gmail.com> 2011-06-10 10:23:11 PDT ---
Closing, as a different proposal has been accepted and (partially) implemented.
(issue 1961)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2400


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2011