Is this a bug?

3 Messages Forum Options Options
Embed this topic
Permalink
Chris Saunders-4
Is this a bug?
Reply Threaded MoreMore options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

I’m implementing a multidimensional array and in my class I inherit from ARRAY.  In the rename clause of the inherit part I attempt to rename copy as array_copy and when I try to compile I get this error:

 

-------------------------------------------------------------------------------

 

Error code: VLEL(2)

Error: identifier in Export subclause does not denote inherited feature.

What to do: make sure that all identifiers in subclause are final names

  of features inherited from the given parent.

 

Class: MULTIDIMENSIONAL_ARRAY [G]

Invalid feature name: copy

Parent for which export list appears: ARRAY

 

Here is the inherit part of my class:

 

inherit

                ARRAY [G]

                                rename

                                                make as array_make,

                                                item as array_item,

                                                put as array_put,

                                                force as array_force,

                                                infix "@" as array_infix_at,

                                                copy as array_copy

                                export

                                                {NONE}

                                                                array_make, array_force,

                                                                wipe_out, resize,

                                                                make_from_array, make_from_cil,

                                                                grow, conservative_resize

                                                {MULTIDIMENSIONAL_ARRAY}

                                                                array_put, array_item

                                                {ANY}

                                                                copy, is_equal, area, to_c

                                redefine

                                                is_equal

                                end

 

Don’t wish to file a bug report ‘till I’m sure it is one.

 

Regards

Chris Saunders


_______________________________________________
Es-devel mailing list
Es-devel@...
http://rock.inf.ethz.ch/cgi-bin/mailman/listinfo/es-devel
Jocelyn Fiat [ES]
Re: Is this a bug?
Reply Threaded MoreMore options
Print post
Permalink
In your code you renamed copy as array_copy
then later in the export, you should use array_copy



inherit

                ARRAY [G]

                                rename
                                                ...

                                                copy as array_copy

                                export

                                                 ...

                                                {ANY} array_copy
                                  ...

                                end


On 7/20/2007 21:37 PM, Chris Saunders wrote:

>
> I’m implementing a multidimensional array and in my class I inherit
> from ARRAY.  In the rename clause of the inherit part I attempt to
> rename copy as array_copy and when I try to compile I get this error:
>
>  
>
> -------------------------------------------------------------------------------
>
>  
>
> Error code: VLEL(2)
>
> Error: identifier in Export subclause does not denote inherited feature.
>
> What to do: make sure that all identifiers in subclause are final names
>
>   of features inherited from the given parent.
>
>  
>
> Class: MULTIDIMENSIONAL_ARRAY [G]
>
> Invalid feature name: copy
>
> Parent for which export list appears: ARRAY
>
>  
>
> Here is the inherit part of my class:
>
>  
>
> inherit
>
>                 ARRAY [G]
>
>                                 rename
>
>                                                 make as array_make,
>
>                                                 item as array_item,
>
>                                                 put as array_put,
>
>                                                 force as array_force,
>
>                                                 infix "@" as
> array_infix_at,
>
>                                                 copy as array_copy
>
>                                 export
>
>                                                 {NONE}
>
>                                                                
> array_make, array_force,
>
>                                                                
> wipe_out, resize,
>
>                                                                
> make_from_array, make_from_cil,
>
>                                                                 grow,
> conservative_resize
>
>                                                 {MULTIDIMENSIONAL_ARRAY}
>
>                                                                
> array_put, array_item
>
>                                                 {ANY}
>
>                                                                 copy,
> is_equal, area, to_c
>
>                                 redefine
>
>                                                 is_equal
>
>                                 end
>
>  
>
> Don’t wish to file a bug report ‘till I’m sure it is one.
>
>  
>
> Regards
>
> Chris Saunders
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Es-devel mailing list
> Es-devel@...
> http://rock.inf.ethz.ch/cgi-bin/mailman/listinfo/es-devel

--
Jocelyn
------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------  

_______________________________________________
Es-devel mailing list
Es-devel@...
http://rock.inf.ethz.ch/cgi-bin/mailman/listinfo/es-devel
Chris Saunders-4
RE: Is this a bug?
Reply Threaded MoreMore options
Print post
Permalink
Thanks Jocelyn

It's obvious and I don't know why I couldn't see it.  I guess my brain is not functioning today.  I'm glad I asked before submitting a bug report.

Regards
Chris Saunders

-----Original Message-----
From: Jocelyn Fiat [ES] [mailto:jfiat@...]
Sent: July 20, 2007 3:47 PM
To: Chris Saunders
Cc: Eiffel Studio Development Mailing List
Subject: Re: [Es-devel] Is this a bug?

In your code you renamed copy as array_copy
then later in the export, you should use array_copy



inherit

                ARRAY [G]

                                rename
                                                ...

                                                copy as array_copy

                                export

                                                 ...

                                                {ANY} array_copy
                                  ...

                                end


On 7/20/2007 21:37 PM, Chris Saunders wrote:

>
> I’m implementing a multidimensional array and in my class I inherit
> from ARRAY.  In the rename clause of the inherit part I attempt to
> rename copy as array_copy and when I try to compile I get this error:
>
>  
>
> -------------------------------------------------------------------------------
>
>  
>
> Error code: VLEL(2)
>
> Error: identifier in Export subclause does not denote inherited feature.
>
> What to do: make sure that all identifiers in subclause are final names
>
>   of features inherited from the given parent.
>
>  
>
> Class: MULTIDIMENSIONAL_ARRAY [G]
>
> Invalid feature name: copy
>
> Parent for which export list appears: ARRAY
>
>  
>
> Here is the inherit part of my class:
>
>  
>
> inherit
>
>                 ARRAY [G]
>
>                                 rename
>
>                                                 make as array_make,
>
>                                                 item as array_item,
>
>                                                 put as array_put,
>
>                                                 force as array_force,
>
>                                                 infix "@" as
> array_infix_at,
>
>                                                 copy as array_copy
>
>                                 export
>
>                                                 {NONE}
>
>                                                                
> array_make, array_force,
>
>                                                                
> wipe_out, resize,
>
>                                                                
> make_from_array, make_from_cil,
>
>                                                                 grow,
> conservative_resize
>
>                                                 {MULTIDIMENSIONAL_ARRAY}
>
>                                                                
> array_put, array_item
>
>                                                 {ANY}
>
>                                                                 copy,
> is_equal, area, to_c
>
>                                 redefine
>
>                                                 is_equal
>
>                                 end
>
>  
>
> Don’t wish to file a bug report ‘till I’m sure it is one.
>
>  
>
> Regards
>
> Chris Saunders
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Es-devel mailing list
> Es-devel@...
> http://rock.inf.ethz.ch/cgi-bin/mailman/listinfo/es-devel

--
Jocelyn
------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------  

_______________________________________________
Es-devel mailing list
Es-devel@...
http://rock.inf.ethz.ch/cgi-bin/mailman/listinfo/es-devel