projekt:battre-c
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
projekt:battre-c [2014/10/03 10:54] – [Bjarnis idéer] bjarni | projekt:battre-c [2014/10/05 04:57] (current) – [Bjarnis idéer] bjarni | ||
---|---|---|---|
Line 21: | Line 21: | ||
* Hum, nån sorts iteratorer? Coroutines, generatorer? | * Hum, nån sorts iteratorer? Coroutines, generatorer? | ||
* '' | * '' | ||
+ | * Trevligt om man kan lägga till medlemmar i enums efter hand: | ||
+ | |||
+ | struct instr{enum INSTR type; char *mnemonic; | ||
+ | | ||
+ | struct instr instructions[]={ | ||
+ | {enum INSTR MOVE, " | ||
+ | {enum INSTR ADD, " | ||
+ | {enum INSTR SUBTRACT, " | ||
+ | }; | ||
===== Martins idéer ===== | ===== Martins idéer ===== |
projekt/battre-c.1412326498.txt.gz · Last modified: 2014/10/03 10:54 by bjarni