[Issue 3470] New: [tdpl]: .length should not pop up inside indexing expressions.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 3 00:03:10 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3470
Summary: [tdpl]: .length should not pop up inside indexing
expressions.
Product: D
Version: 2.035
Platform: Other
OS/Version: All
Status: NEW
Keywords: patch
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2009-11-03 00:03:10 PST ---
Found this in the "thermoplyae" excerpt.
----
PATCH: dsymbol.c, ArrayScopeSymbol::search(), line 1062
//printf("ArrayScopeSymbol::search('%s', flags = %d)\n", ident->toChars(),
flags);
- if (ident == Id::length || ident == Id::dollar)
+ if (ident == Id::dollar)
{ VarDeclaration **pvar;
----
I have already made the changes to druntime (svn 192) and Phobos (svn 1319), so
that they'll pass all unit tests once this change has been made.
COMMENT:
>From the changelog for DMD 0.115 (Mar 7, 2005!!!):
$ can now be used instead of length inside an array's []. It represents the
length of the array. This is a trial feature, if it works out then these will
happen in sequential releases:
1. length will become deprecated inside [].
2. length will be removed as the implicitly declared length, and it will be
just another identifier.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list