|
|
||
|
Hi,
This could be resolved with a non-local return mechanism for Lua that would let one build a function to do the following:
local image, quality = return_if_nil( get_image_and_quality() )
I like this idea. I actually thought about it but it didn't seem to be possible without modifying Lua somehow. That's why I use exceptions. We could have two versions of this function, the return_if_nil would be for soft errors. Another version would throw an exception.
[]s, Diego.