[V4REV] Constants. Plan 2.

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jun 20 11:46:56 CDT 2005


On 6/20/05 11:33 AM, "ron barber" <rbarber at yhb.att.ne.jp> wrote:

>> -----------------------------
>> * About support of numeric values for ENUM types.
>> 
>> I think it is good idea DO NOT allow this. Because numeric constant is
>> NOT
>> readable for developer. We have a lots of constants, and I think
>> nobody can
>> memories them.
> 
> you are right, as the first of the letter shows, I can't even keep the
> order straight  ; )
> 
> okay, passing numbers as parameters is a common practice in my
> experience, even if it is bad practice. The question is, do you want to
> allow it in v4rev? I personally can live without it. I think the docs
> should not show numerical equivalents if you decide not to allow
> numbers.
> 
> For example:
> get VDatabase_Create(dbRef, mPath,"EVDbMode.kDscDatBlbInd", 32 * 1024)
> - ok
> get VDatabase_Create(dbRef, mPath,"kDscDatBlbInd", 32 * 1024) - ok
> get VDatabase_Create(dbRef, mPath,1, 32 * 1024) - na - not allowed
> 
> sometimes I have seen xcmds use this form:
> get VDatabase_Create(dbRef, mPath,"1", 32 * 1024)
> 
> what do you think of this?

In the version 1 VXCMD yes, have use numeric constants.
In all languages in fact.

In v2 we put efforts to introduce for all languages symbol constants.
This is more safe way for development.

We will NOT allow numeric values at all in v2


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina-beta mailing list