mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
Fixed identity expression for dynamic arrays. Revamped the system to keep track of lvalues and rvalues and their relations. Typedef declaration now generate the custom typeinfo. Other bugfixes.
15 lines
192 B
D
15 lines
192 B
D
module bug32;
|
|
|
|
struct S
|
|
{
|
|
char[] getName() { return name; }
|
|
char[] name;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
S s = S("Kyle");
|
|
char[] name = s.name;
|
|
printf("%.*s\n", name.length, name.ptr);
|
|
}
|