[Issue 2400] New: return const proposals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 8 09:52:40 PDT 2008
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 at digitalmars.com
ReportedBy: terranium at 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.
--
More information about the Digitalmars-d-bugs
mailing list