Error VNCP

2 Messages Forum Options Options
Embed this topic
Permalink
Colin Paul Adams
Error VNCP
Reply Threaded MoreMore options
Print post
Permalink
I am receiving the following message using the latest  ES 6.3:

Error code: VNCP
Convertibility error: Validity error in convert clause specification or usage.
What to do: Fix the error....

Class: ST_STRING
Routine specified twice in Convert_clause.

GEC doesn't complain.

I have a convert clause looking like this:

       
convert

        to_string: {STRING_32}, to_utf8_string: {UC_UTF8_STRING},
        to_utf8_string: {STRING_8}

I'm sure I saw something on these lines elsewhere.

Is it legal or not? (i.e. which compiler is wrong)
--
Colin Adams
Preston Lancashire

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
freeelks-devel mailing list
freeelks-devel@...
https://lists.sourceforge.net/lists/listinfo/freeelks-devel
Eric Bezault-4
Re: Error VNCP
Reply Threaded MoreMore options
Print post
Permalink
Colin Paul Adams wrote:

> I am receiving the following message using the latest  ES 6.3:
>
> Error code: VNCP
> Convertibility error: Validity error in convert clause specification or usage.
> What to do: Fix the error....
>
> Class: ST_STRING
> Routine specified twice in Convert_clause.
>
> GEC doesn't complain.
>
> I have a convert clause looking like this:
>
>
> convert
>
> to_string: {STRING_32}, to_utf8_string: {UC_UTF8_STRING},
> to_utf8_string: {STRING_8}
>
> I'm sure I saw something on these lines elsewhere.
>
> Is it legal or not? (i.e. which compiler is wrong)

I know that gec does not implement all convert validity rules yet.
However, I could not find a rule VNCP in ECMA Eiffel.
There is a VYCP rule, but it does not seem to forbid a
name from appearing twice.

In order to make EiffelStudio happy, you can write:

convert

        to_string: {STRING_32}
        to_utf8_string: {UC_UTF8_STRING, STRING_8}

--
Eric Bezault
mailto:ericb@...
http://www.gobosoft.com


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
freeelks-devel mailing list
freeelks-devel@...
https://lists.sourceforge.net/lists/listinfo/freeelks-devel