[Issue 2416] New: Slice of typedef'ed array should preserve the typedef'ed type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 13 12:39:50 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2416
Summary: Slice of typedef'ed array should preserve the typedef'ed
type
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: andrei at metalanguage.com
typedef const(char)[] A;
A stripl(A s)
{
uint i;
return s[i .. $];
}
This should work. A slice of a typedef'ed array should not spoil the typedef.
--
More information about the Digitalmars-d-bugs
mailing list