home *** CD-ROM | disk | FTP | other *** search
- From: jeff@staff.cs.su.oz.au (Jeff Kingston)
- To: colnet@loria.fr
- Subject: SmallEiffel bug report
- Date: Wed, 10 Apr 1996 15:29:34 +1000
-
- Something is wrong with renaming. I have a class that
- begins like this:
-
- ===============================================================
- class DIJ_VERTEX
-
- inherit
-
- DIGRAPH_LISTS_VERTEX redefine etype end;
-
- PRIQUEUE_HEAP_ENTRY[INTEGER] rename key as distance end;
- ===============================================================
-
- and inside PRIQUEUE_HEAP_ENTRY I have this:
-
- ===============================================================
- class PRIQUEUE_HEAP_ENTRY[T -> COMPARABLE]
-
- inherit
-
- PRIQUEUE_ENTRY[T]
-
- feature { PRIQUEUE_HEAP }
-
- back: INTEGER;
-
- put_back(i: INTEGER) is
- do
- back := i;
- end;
-
- end -- `PRIQUEUE_HEAP_ENTRY'
- ===============================================================
-
- and inside PRIQUEUE_ENTRY I have this:
-
- ===============================================================
- class PRIQUEUE_ENTRY[T -> COMPARABLE]
-
- creation
-
- make
-
- feature
-
- key: T;
-
- make, put_key(k: T) is
- do
- key := k
- end
-
- end -- `PRIQUEUE_ENTRY'
- ===============================================================
-
- and SmallEiffel tells me that key doesn't exist:
-
- ===============================================================
- ****** Error : There is no feature key in class DIJ_VERTEX.
- Line 13 column 3 in PRIQUEUE_ENTRY (priqueue_entry.e) :
- key := k
- ^
- ------
- ****** Error : Feature not found.
- Line 13 column 3 in PRIQUEUE_ENTRY (priqueue_entry.e) :
- key := k
- ^
- ------
- ****** Error : Bad feature name.
- Line 13 column 3 in PRIQUEUE_ENTRY (priqueue_entry.e) :
- key := k
- ^
- ------
- ****** Error : Bad left hand side of assignment.
- Line 13 column 3 in PRIQUEUE_ENTRY (priqueue_entry.e) :
- key := k
- ^
- ------
- ****** Fatal Error : Bad instruction (when interpreted in DIJ_VERTEX).
- Line 13 column 3 in PRIQUEUE_ENTRY (priqueue_entry.e) :
- key := k
- ^
- ===============================================================
-
-
- Jeff Kingston
- jeff@cs.su.oz.au
-