www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2846] New: box arguments should be const

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

           Summary: box arguments should be const
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dhasenan gmail.com


phobos/std/boxer.d 422:
- Box box(TypeInfo info, void* data)
+ Box box(in TypeInfo info, in void* data)

I know that std.boxer is scheduled for execution, but it's the only way to
create a variant from TypeInfo, void* in phobos.


-- 
Apr 17 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2846





------- Comment #1 from dhasenan gmail.com  2009-04-17 09:57 -------
This would require that TypeInfo's methods be marked const.


-- 
Apr 17 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2846


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei metalanguage.com
            Version|2.000                       |D1


--- Comment #2 from Andrei Alexandrescu <andrei metalanguage.com> 2011-01-08
16:15:39 PST ---
Sorry... D1 only.

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


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |INVALID


--- Comment #3 from Don <clugdbug yahoo.com.au> 2011-02-14 05:17:38 PST ---
This makes no sense: a bug that applies only to D1, that involves a D2
feature...

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