Page 2 of 2
Posted: Fri Mar 30, 2007 11:11 am
by ts-soft
If this failed, there is no ProcedureReturn, result is undefined
Posted: Fri Mar 30, 2007 11:18 am
by freak
Without ProcedureReturn, there is an empty string returned. (or 0 for numeric types)
Posted: Fri Mar 30, 2007 11:29 am
by ts-soft
freak wrote:Without ProcedureReturn, there is an empty string returned. (or 0 for numeric types)
I am sure, actually, that you have written somewhere sometimes, without ProcedureReturn the value would be undefined one :roll:
If the result always defined, then is okay, thanks for the info.
Posted: Fri Mar 30, 2007 11:36 am
by freak
I think you are mixing this up: The PB library functions return an undefined value,
when the docs do not mention a returnvalue.
Procedures always return something. (except when using ProcedureReturn without
argument, in which case the EAX register is returned for asm stuff)
Posted: Fri Mar 30, 2007 11:42 am
by ts-soft
I become slowly old

Posted: Fri Mar 30, 2007 2:04 pm
by Flype
As long as i can remember this feature is present since the beginning (i know purebasic since PB3.70).
...But now you can save one or two lines in all your functions - which can represents a hard work regarding to all the work you did on your includes

Posted: Fri Mar 30, 2007 2:28 pm
by ts-soft
Oh, no no, with ProcedureReturn it looks better
