[Issue 3474] PATCH: Implement opDollar for struct and class indexing operations

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 5 15:09:24 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3474


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com


--- Comment #4 from Stewart Gordon <smjg at iname.com> 2009-11-05 15:09:23 PST ---
(In reply to comment #1)
> Great!
> 
> Any chance we can use "length" instead of "opDollar" throughout? It would
> instantly match what arrays are currently doing and it would be a closer
> description of the semantics of the operation.

I agree that "opDollar" is a bad choice of name, but so is "length".  AIUI the
point is for it to represent the end (or one past the end) of the array, rather
than length.  They correspond only in the case of 0-based arrays.

This has come up before:

http://www.digitalmars.com/d/archives/digitalmars/D/announce/Re_opDollar_12939.html

-- 
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