[cedet-semantic] Enum values -- again
Brought to you by:
zappo
From: Marcus H. <mar...@gm...> - 2004-06-06 18:21:33
|
Marcus Harnisch writes: > Somehow the value `0' gets lost though. The tag for "A" (or any other > member that gets a value of `0') doesn't ever get the :value > attribute. > > [...] > > Is there anything special about `0'? Could the function `semantic-tag-make-plist' be the culprit? From the doc string: ,----[ semantic-tag-make-plist ] | Create a property list with ARGS. | Args is a property list of the form (KEY1 VALUE1 ... KEYN VALUEN). | Where KEY is a symbol, and VALUE is the value for that symbol. | The return value will be a new property list, with these KEY/VALUE | pairs eliminated: | | - KEY associated to nil VALUE. | - KEY associated to an empty string VALUE. | - KEY associated to a zero VALUE. `---- Why these restrictions? I found this comment right above the function definition: ;; Is this function still necessary? Best regards, Marcus |