next up previous contents
Next: Control structures Up: Concrete differences Previous: Concrete differences   Contents

Empty instruction

There is no empty instruction (written as `;' in C). skip keyword is introduced instead. For example:

C:

        while (f(b++));

Gont:

        while (f(b++))
                skip;

This is to disallow common C's mistake:

        while (cond);
                do_sth;

(note `;' after while).



Micha³ Moskal 2001-11-29