« Return to Thread: Conformance of literals to attached arguments

Re: Conformance of literals to attached arguments

by Eric Bezault :: Rate this Message:

Reply to Author | View in Thread

Colin Paul Adams wrote:

> I just came across this:
>
> Error code: VUAR(2)
> Type error: non-conforming actual argument in feature call.
> What to do: make sure that type of actual argument conforms to type
>   of corresponding formal argument.
>
> Class: ST_TEST_ST_STRING
> Feature: test_substring
> Called feature: make_from_string (a_string: !STRING_GENERAL) from ST_STRING
> Argument name: a_string
> Argument position: 1
> Actual argument type: STRING_8
> Formal argument type: !STRING_GENERAL
> Line: 57
>       do
> ->      create l_32.make_from_string ("A test string")
>
> ISE 6.1.
>
> It astonishes me. Why doesn't a literal of type STRING_8 conform to
> !STRING_GENERAL ?

Let's hear what Manu has to say about that.
In the meantime you might try and see what you get with 6.2.

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gobo-eiffel-develop mailing list
gobo-eiffel-develop@...
https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop

 « Return to Thread: Conformance of literals to attached arguments

LightInTheBox - Buy quality products at wholesale price