[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] wish: var and/or constant array of strings

From: Gaius Mulley
Subject: Re: [Gm2] wish: var and/or constant array of strings
Date: Mon, 28 Jun 2010 13:05:10 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

 SiTex Graphics <address@hidden> writes:

> Hi Gaius,
> Both StonyBrook and XDS allow simple assignment of constant and
> variable arrays of strings.  Sample code attached.  Compile with
> gm2 -fiso -o ces -fmakeall ces.mod
> I like to use this method of array initialization for enumerated types
> because it helps ensure than any changes to the base enumerated type
> are accompanied by changes in related structures.
> Coding around this limitation is straightforward of course, so this is
> a fairly low priority wish.  It would be nice if GM2 at least issued
> an appropriate error message instead of crashing during the compile.
> Thanks,
> Scott


thanks for the code example and suggestion.  gm2 now allows this and
checks to see whether there is enough space in the array (it will
truncate a nul from a string if necessary) - but complains if more
characters need to be sliced off the end to fit.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]