Mercurial > projects > dang
view test.td @ 53:da551f90e03f new_gen
Added struct decl and forward ref. A note on structs: they need to make a new scope when declared. Otherwise you could access struct members as globals
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Sat, 26 Apr 2008 18:52:27 +0200 |
parents | 858b9805843d |
children |
line wrap: on
line source
int main() { int y = 4; karina k; while (y > 0) y = y - 1; return x; } int x = 4; struct karina { anders a; int age; int width; int height; int lovers; } struct anders { int hej; }