[Coco] nasty bug in cprep19!!!

Stephen H. Fischer SFischer1 at Mindspring.com
Sat May 28 14:14:54 EDT 2011


----- Original Message ----- 
From: "Willard Goosey" <goosey at virgo.sdc.org>
To: <coco at maltedmedia.com>
Sent: Thursday, May 26, 2011 4:41 PM
Subject: [Coco] nasty bug in cprep19!!!


>I *knew* something would break if I tried to recompile cgfx!!!
> 
> In this case, I stumbled across a nasty bug in Cprep19 and cprep19a
> 
> with an array of structs, element names with '_' get split up on the
> '-'.
> 
> This works:
> foo.f_baz=5;
> it becomes  foo . f_baz = 5 ;
> 
> This works but is a warning that not all is right:
> foo[bar].baz=5;
> it becomes   foo [ bar ] .baz = 5 ;
> 
> This breaks:
> foo[bar].f_baz=5;
> and is rendered as: foo [ bar ] .f _baz = 5 ;
> 
> _slight_ problem there, I'm trying to figure it out.
> 
> Willard
> -- 
> Willard Goosey  goosey at sdc.org
> Socorro, New Mexico, USA
> I search my heart and find Cimmeria, land of Darkness and the Night.
>  -- R.E. Howard
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list