10 Jun 16:09
How to use the address of "Current"
From: Zheng Hu <zheng.hu <at> gmx.de>
Subject: How to use the address of "Current"
Newsgroups: gmane.comp.lang.eiffel.smalleiffel
Date: 2008-06-10 14:09:41 GMT
Expires: This article expires on 2008-06-24
Subject: How to use the address of "Current"
Newsgroups: gmane.comp.lang.eiffel.smalleiffel
Date: 2008-06-10 14:09:41 GMT
Expires: This article expires on 2008-06-24
Hi again,
I want to send the address of Current object in a function parameter to another class! But I get an error message:
****** Fatal Error: Cannot use `Current' after the $ operator.
The $ operator must be followed by the final name of a feature
which is not a constant attribute or by the name of some local
variable as well.
My code looks like this:
class
ABC
inherit
XYZ
creation
make
feature
make is
do
Current.launch($Current)
end
-----------------------------------------------------------------
class
XYZ
creation
make
(Continue reading)
See example in "SmartEiffel/tutorial/external/C/example1.e".
If you do not want to send the address of Current outside of the Eiffel
world,
may be, you are doing something weird...
Hope this help,
RSS Feed