Re: [cc65] Register variables

Date view Thread view Subject view

From: Harald Arnesen (harnesen_at_stones.com)
Date: 1999-07-19 11:20:25


uz_at_musoftware.de (Ullrich von Bassewitz) writes:

> > Couldn't you forbid the & operator for register variables?
> 
> Unfortunately, the standard does not allow that. Forbidding the & operator for
> register variables would be the last resort.

>From section A8.1 of _The C Programming Language_, second edition:

"However, if an object is declared register, the unary & operator may
not be applied to it, explicitly or implicitly".

So to me it seems that taking the address of a register variable is
actually forbidden.
-- 
Harald Arnesen, Apalløkkveien 23 A, N-0956 Oslo, Norway
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET