g-wrap-dev
[Top][All Lists]
Advanced

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

Re: functions which return enumerate types


From: John Steele Scott
Subject: Re: functions which return enumerate types
Date: Mon, 18 Sep 2006 19:19:58 +0900
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))

On Sun, 17 Sep 2006 12:51:15 +0200, Andreas Rottmann wrote:
> John Steele Scott <address@hidden> writes:
>> By the way, what is the second argument to enum-*-val->sym for? I first
>> assumed that it was for decoding bitset enums, but after some basic
>> experimentation, this doesn't seem to be the case.
>>
> If there are more than one enum identifier with the same values, a
> list of symbols is returned; e.g.:
> 
> enum { FOO = 1, BAR = 2, BAZ = 1};
> 
> would cause '(foo baz) to be returned for the value 2.

I'm sure you meant to write "the value 1".

Thanks for your answer, that use case had not occurred to me.

cheers,

John





reply via email to

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