Re: [cc65] ca65: .local command in .macros

From: thefox xofeht <>
Date: 2012-12-21 06:33:39
On Fri, Dec 21, 2012 at 7:06 AM, Jeremy Turner
<> wrote:
> I see that the intention is to use .local to define a symbol to be used for
> branching, but it seems to work for local variables/constants as well. (Or
> is it?) Is this a correct use if I am going to be using them in the way
> described above or are their drawbacks to this approach?

Yep, from CA65's point of view there's no functional difference
between a label and any other kind of symbol, so it will work just

Mini rant: I've always felt that it would have been better if symbols
defined in the macro were local by default, and non-local symbols
would have to be explicitly defined. The reason being that in my
experience the need for global symbols is much more rare. But there's
no going back now! :)

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Dec 21 06:34:03 2012

This archive was generated by hypermail 2.1.8 : 2012-12-21 06:34:06 CET