[Gambas-user] Better error message suggestion

Ron ron at ...1740...
Fri Jun 20 22:24:09 CEST 2008



Hi,

If you return a value within a subroutine where you forgot to specify 
the return value type for, you get the following error:

"Cannot return a value in a procedure.."
-- 
PUBLIC SUB GetDeviceType()

 ...
 RETURN something

END
-- 

It's maybe more clear to give something like "Return type not specified 
for subroutine at line 123 ...

My 2ct

Regards,
Ron






More information about the User mailing list