instruction shall still throw an exception if v is not attached. Is this
> At the moment the compiler does not support the new proposed syntax for a check
> instruction. As to the usual check instruction, the scope of an object test local is
> limited to this instruction. So, it's possible to have
>
> check
> v_attached: attached v
> end
>
> check
> v_attached: attached v as x
> x_not_empty: not x.is_empty
> end
>
> but not
>
> check
> v_attached: attached v as x
> end
> x.append_character('a')
>
> Regards,
> Alexander Kogtenkov
>
>
> ----- Original Message -----
> From: "Jonathan S. Ostroff" <
[hidden email]>
> To: <
[hidden email]>
> Sent: Monday, June 22, 2009 12:58 AM
> Subject: [eiffel_software] E6.4 release candidate 9263/ Object test
>
>
>> I am having difficulty with the object test construct using full void safety
>> (see ecf file below). I am wondering how to do an object test in a check
>> statement? The various errors I get are:
>>
>>
>> make
>> local
>> v: detachable STRING
>> do
>> -- #1 syntax error
>> -- check attached {STRING} v as x then
>> -- x.append_character('a')
>> -- end
>>
>> -- #2 this works
>> -- if attached {STRING} v as x then
>> -- x.append_character('a')
>> -- end
>>
>> -- #3 VEEN error/obsolete warning
>> -- check {x:STRING} v end
>> -- x.append_character('a')
>>
>> -- #4 this works
>> check v /= Void end
>> v.append_character ('a')
>> end
>>
>>
>> ====
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <system xmlns="
http://www.eiffel.com/developers/xml/configuration-1-5-0"
>> xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="
http://www.eiffel.com/developers/xml/configuration-1-5-0>>
http://www.eiffel.com/developers/xml/configuration-1-5-0.xsd" name="cell"
>> uuid="8C9D79DF-C9FA-468F-B1F0-F86EB29854E5">
>> <target name="cell">
>> <root class="APPLICATION" feature="make"/>
>> <option warning="true" full_class_checking="true"
>> cat_call_detection="true" is_attached_by_default="true" void_safety="all"
>> syntax="standard">
>> <assertions precondition="true" postcondition="true"
>> check="true" invariant="true" loop="true" supplier_precondition="true"/>
>> </option>
>> <library name="base"
>> location="$ISE_EIFFEL\library\base\base-safe.ecf"/>
>> <cluster name="cell" location=".\" recursive="true">
>> <file_rule>
>> <exclude>/EIFGENs$</exclude>
>> <exclude>/.svn$</exclude>
>> <exclude>/CVS$</exclude>
>> </file_rule>
>> </cluster>
>> </target>
>> </system>
>>
>>
>>
>> ------------------------------------
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>