CompuServe Messages

#tagItem init?

    25-Mar-92 23:09:57
Sb: #tagItem init?
Fm: Syndesis 76004,1763
To: All
I've been wondering how to get around a warning in the Manx compiler. AmigaDOS 2.0 introduces the 'struct tagItem', a struct containing essentially two ULONGs. A snippet of Commodore code, presumably for the Lattice compiler, initializes a tagItem with code like { VALUE, (ULONG)"string" }, casting the pointer to those characters to a ULONG. I can see how it can do that, but with my usual set of ANSI and warning options on Manx, it doesn't allow this. Is there a way I can get around it, and let this code compile at all? It complains that the initializer is not a constant. The only way I've been able to get around it is to initialize the second half of the tagItem with an explicit assignment in the code, as opposed to initializing it during compilation.