[Issue 12469] opIndex does not work on pointers to structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 25 13:38:07 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12469
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andrej.mitrovich at gmail.com
Resolution| |INVALID
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-25 21:38:00 CET ---
Indexing into pointers is a C feature that was carried over into D. Hence why
the compiler expects you to pass a size_t index (ulong on x64). Use (*hoi)["a"]
instead.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list