Re: [cc65] How to properly use a .union

From: thefox xofeht <thefox1aspekt.fi>
Date: 2013-01-22 13:32:22
On Tue, Jan 22, 2013 at 10:21 AM, Payton Byrd <plbyrd@gmail.com> wrote:

> On Tue, Jan 22, 2013 at 2:19 AM, thefox xofeht <thefox@aspekt.fi> wrote:
>
>> Ok, I think I understand now. Because the binary file is constant, you
>> want to make symbols based on its contents. It's not possible, even though
>> the values are known at compile time.
>>
>
> Precisely.  I worked around it (see previous email).
>

Maybe Uz can comment on whether such a "compile-time indirection" feature
would be possible to implement, I too have hoped that it would be possible
at times. It seems to be possible in theory, but maybe I'm not seeing all
the repercussions.

The use case would be scenarios like that, where you know a certain value
is a constant, but you have no easy control over the structure of the data
(binary files being a prime example).

-thefox

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 22 13:32:32 2013

This archive was generated by hypermail 2.1.8 : 2013-01-22 13:32:35 CET