[V4REV] Constants
Ivan Smahin
IvanSmahin at public.kherson.ua
Sun Jun 19 20:40:36 CDT 2005
Robert Brenstein пишет:
> It is a string if it is quoted, ie "kUnique".
>
> If it is not quoted, ie kUnique, Rev checks first if it is an existing
> variable. If it is not, it creates a variable on the fly and sets its
> value to its name. At least that is what I understand as general
> operating procedure.
>
> For your function, the value passed is the same in both cases, but the
> process is somewhat different.
>
> Quoting will be required for "kIndexed + kUnique"; otherwise, users will
> get runtime error unless they define kIndexed and kUnique as variables
> or constants themselves.
>
> I have no clue whether adding OO features and thus a special meaning to
> a period inside an unquoted string will break this or not. This is why I
> suggested to consult with RunRev team.
>
Robert, I meant just a simple thing:
Plugin expects the string. Nevermind how it was gotten in Rev.
If Rev. team implement the enums we could change this logic.
--
Best regards,
Ivan Smahin
More information about the Valentina-beta
mailing list