http://d.puremagic.com/issues/show_bug.cgi?id=3546
Summary: Aliasing an element of a static array should be legal
if the index is a compile time constant
Product: D
Version: 2.036
Platform: Other
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: dsimcha yahoo.com
--- Comment #0 from David Simcha <dsimcha yahoo.com> 2009-11-23 18:04:51 PST ---
uint[3] foo;
alias foo[0] bar;
Error:
test8.d(2): Error: alias test8.bar cannot alias an expression foo[0]
Since foo is a static array and 0 is a compile time constant, there is no
reason this shouldn't work. It works with tuples, and static arrays really
should offer a superset of tuple functionality because they are implemented the
same way as tuples with all the same type.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------