Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error: Function does not return a value.

7 views
Skip to first unread message

b...@mrbob.se

unread,
Apr 1, 2008, 7:04:36 AM4/1/08
to
I get this compiler error when I'm trying to compile the following two
codes using the Flex SDK.
Both of them _ALWAYS_ returns a value.

// # 1
if( true )
{
return false;
}
else
{
return true;
}

// # 2
try
{
return true;
}
catch( e:Error )
{
return false;
}


Would be very happy to get some answer on this because I don't want to
be adding extra garbage-returners in the end of functions just to make
the compilers happy.

Best Regards
//Bob

0 new messages