Bug 2400 – return const, return invariant

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-10-08T11:52:00Z
Last change time
2014-02-14T20:35:25Z
Keywords
spec
Assigned to
nobody
Creator
dfj1esp02
Blocks
1824

Comments

Comment #0 by dfj1esp02 — 2008-10-08T11:52:39Z
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.
Comment #1 by schveiguy — 2008-10-08T12:31:49Z
My proposal: bug 1961
Comment #2 by yebblies — 2011-06-10T10:23:11Z
Closing, as a different proposal has been accepted and (partially) implemented. (issue 1961)