Bug 2846 – box arguments should be const

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2009-04-17T09:50:00Z
Last change time
2011-02-14T05:17:38Z
Assigned to
nobody
Creator
dhasenan

Comments

Comment #0 by dhasenan — 2009-04-17T09:50:57Z
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.
Comment #1 by dhasenan — 2009-04-17T09:57:38Z
This would require that TypeInfo's methods be marked const.
Comment #2 by andrei — 2011-01-08T16:15:39Z
Sorry... D1 only.
Comment #3 by clugdbug — 2011-02-14T05:17:38Z
This makes no sense: a bug that applies only to D1, that involves a D2 feature...