[V4REV] Constants
Robert Brenstein
rjb at robelko.com
Mon Jun 20 15:29:56 CDT 2005
>On 6/20/05 12:22 PM, "ron barber" <rbarber at yhb.att.ne.jp> wrote:
>
>> I still am unclear about this notation. It has taken me a little time
>> to understand the difference between these two styles:
>>
>> EVDbMode kDscDatBlbInd = 1 kDsc_DatBlbInd = 2 kDsc_DatBlb_Ind
>> = 3 kDsc_Dat_Blb_Ind = 4 kDscDatBlb_Ind = 5 kDscDat_Blb_Ind =
>> 6 kDscDatInd_Blb = 7 kDsc_DatInd_Blb = 8
>>
>> EVFlag fNone = 0 fNullable = 1 fIndexed = 2
>> fUnique = 4 fIndexByWords = 8 fCompressed = 32 fMethod
>> = 64
>>
>> Those that begin with f can be combined "fIndexed fUnique" as one
>> parameter whereas those with k are one single constant. So obvious and
>> yet so foreign to my narrow xtalk world and small brain ; )
>
>Ron,
>
>All constants start with 'k'
>
>Only field flags ion historical reason go with 'f'
>
>Here there is no any big idea behind.
>Just fIndexed was more nice than kIndexed.
>
>May be there is sense add kIndexed
>and still support fIndexed, but remove it from docs,
>So all new developers will write kIndexed...
or kFlagIndexed to make them even more verbatim and reduce chances
for duplication.
Robert
More information about the Valentina-beta
mailing list