gail@alberta.UUCP (01/19/87)
What is the exclusive-or operator in C-Power? You know, the " ^ " operator in C. Where is it on the C64 keyboard? Also, why can't C-Power functions be declared as returning " void "? Can they return anything other that integers or reals? The definition of C allows returning structs! Also, has anyone else out there with C-Power noticed that the precedence of the logical AND operator, " && ", is WRONG! I had to rewrite the if shown here: if ( x1 == 0 && x2 == 0) { .... } as: if ((x1 == 0) && (x2 == 0)) { ....} in order to get it to work properly. The first "if" shown would never take the branch. DOES anyone else have any C-Power bugs that they know of? My version is 2.9.
alan@io.UUCP (a.yorinks) (01/21/87)
In article <1045@cavell.alberta.UUCP>, gail@alberta.UUCP (Gail Miklos) writes: > What is the exclusive-or operator in C-Power? > You know, the " ^ " operator in C. Where is it on the C64 keyboard? > > Also, why can't C-Power functions be declared as returning " void "? > Can they return anything other that integers or reals? The definition > of C allows returning structs! > The carate key which normally is the symbol for XOR is replaced by the up arrow key (not the cursor movement key) on the 64. C-Power allows you the flexibility to return anything you normally would with K&R C with the exception of void. If this really bugs you, then write a macro to specify a return for void (i.e. #define void int).