KAYLukas / FoxyC

Adds class-oriented syntaxis to C, by using macro's only.
0 stars 0 forks source link

Foreach loop #6

Open KAYLukas opened 10 years ago

KAYLukas commented 10 years ago

Implement a foreach loop with corresponding interface in FoxyC.

Something like

for(Iterator* it = foxy((list via Iterable) $ getIterator());
          foxy(it $ hasNext()); foxy(it $ MoveNext()))
          _FOXYC_META_CONTROL_BLOCK(declaration = foxy(it $ current),
               1,)

should implement the foreach loop.