User Tools

Site Tools


projekt:battre-c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
projekt:battre-c [2014/10/03 10:54]
bjarni [Bjarnis idéer]
projekt:battre-c [2014/10/05 04:57] (current)
bjarni [Bjarnis idéer]
Line 21: Line 21:
   * Hum, nån sorts iteratorer? Coroutines, generatorer?​   * Hum, nån sorts iteratorer? Coroutines, generatorer?​
   * ''​sizeof(funktion)''​ ska fungera.   * ''​sizeof(funktion)''​ ska fungera.
 +  * 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, "​mov"​},​
 +    {enum INSTR ADD, "​add"​},​
 +    {enum INSTR SUBTRACT, "​sub"​}
 +  };
  
 ===== Martins idéer ===== ===== Martins idéer =====
projekt/battre-c.txt · Last modified: 2014/10/05 04:57 by bjarni