[M3devel] unable to put M3CG.TypeUID into a record

Rodney M. Bates rodney_bates at lcwb.coop
Sun Oct 28 16:28:12 CET 2012



On 10/26/2012 04:27 AM, Jay K wrote:
> I still really don't like how M3CG.TypeUID is defined.
>
> Asserting that a type fits in 32bits
> should not preclude putting it into a RECORD.
>
> Currently you cannot put M3CG.TypeUID into a record.
>
> The following does not work:
>
> RECORD whatever = typeid: M3CG.TypeUID; END;

I don't understand what the problem with this is.  I expected it to work fine,
which I confirmed by trying it, on both a 32-bit and a 64-bit compile.
There is nothing here that would put the TypeUID at a place where it would
have cross a word boundary or have problematic starting bit number.

Did you perhaps mean in some other record type that has field(s)
before the TypeUID that would leave it wrongly aligned?

>
> That seems really absurd to me.
>
>   - Jay
>
>
>  > Date: Fri, 26 Oct 2012 11:22:55 +0000
>  > To: m3commit at elegosoft.com
>  > From: jkrell at elego.de
>  > Subject: [M3commit] CVS Update: cm3
>  >
>  > CVSROOT: /usr/cvs
>  > Changes by: jkrell at birch. 12/10/26 11:22:55
>  >
>  > Modified files:
>  > cm3/m3-sys/m3back/src/: M3C.m3
>  >
>  > Log message:
>  > continue to hack around bogus packing of M3CG.TypeUID
>  >




More information about the M3devel mailing list