KAYLukas / FoxyC

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

Add set builder notation #10

Open KAYLukas opened 10 years ago

KAYLukas commented 10 years ago

Something like

list (foxy(n $ getRoot()) foreach Node* n in nodeList, Node * b in nodeList when n==b)
KAYLukas commented 10 years ago

Some challenge exist to make this compatible with #6 . Maybe possible by defining

#define foreach _foreach,
#define _foreach_remove
#define _foreach __foreach(
#define __foreach(x, ...) ___foreach##__VA_ARGS__
#define list(x) eval_list(x)
#define eval_list(output, ...) proces_list(output ##_remove, __VA_ARGS__)