1. Discard, was:Re: hypocrite's reply
Ralf,
If you want to discard the result of a function, and don't want the
function to calculate that return vvariable, couldn't you simply do this:=
function do_something(object o1, object o2)
-- just an example
-- do something
return 1
end function -- do_something
-- Main program
object a, b
if discard(a, b) then
end if
-- etc, etc, etc
-- This would always work, or isn't that what you were meaning?
Ad
2. Re: Discard, was:Re: hypocrite's reply
Ad Rienks wrote:
> function do_something(object o1, object o2)
> -- just an example
> -- do something
> return 1
> end function -- do_something
> -- Main program
> object a, b
> if discard(a, b) then
> end if
> -- etc, etc, etc
errrrrrrrrrrrrrrrrrr..................
*feels around to make sure his dunce cap is on*
i sowwy, ummmmmmm, i just-a don't get it...
*ponder* urm... nope... still cannae figure
out how this-a does what ralf was 'fer-in to...
had you said:
function discard(object a, object b)
--Do_Sumfin or !Do_Sumfin
return 1
end function
--main
object x,y
if discard(x,y) then DanceAndSing(A_Jig) end if
wellllllll *then* i might see... but even the above
example is rather... wellllll.... like....
bad form ol' chap!?!?!?!
--:) Hawke'
3. Re: Discard, was:Re: hypocrite's reply
Hawke oopsy!:
> if discard(x,y) then DanceAndSing(A_Jig) end if
make that:
if discard(x,y) then --DanceAndSing(A_Jig)
end if