21 Jul 23:26
Result not assigned
From: Jörgen Tegnér <jorgen.tegner <at> telia.com>
Subject: Result not assigned
Newsgroups: gmane.comp.lang.eiffel.smalleiffel
Date: 2008-07-21 21:30:38 GMT
Expires: This article expires on 2008-08-04
Subject: Result not assigned
Newsgroups: gmane.comp.lang.eiffel.smalleiffel
Date: 2008-07-21 21:30:38 GMT
Expires: This article expires on 2008-08-04
Hi list,
the code below compiles fine with SmartEiffel. Obviously it's a bug in
that I forgot to assign anything to Result. Shouldn't the compiler warn
or abort when compiling this code?
class A
creation {ANY}
make
feature {ANY}
make is
local
b: BOOLEAN
do
b := hmmm
end
hmmm: BOOLEAN is
do
end
end -- class A
Jörgen
--
--
I'm kinda looking forward to the alzheimer's... I'll get to meet new
people every day. I'll never have take the blame for anything. I'll get
to meet new people every day.
RSS Feed