On Monday 06 July 2009, Øyvind Harboe wrote:
> - unless a fn *explicitly* documents it's return values, then
> the calling code should treat the return value as a boolean
> success/failure.

You're talking about C codes, right?

There's more that should be said about returning values
from Tcl commands ... so that scripts can use them.

Right now it's somewhat unusual for values to be returned
in a form that they're usable from Tcl; awkward.  And in
the same way, it's unusual for commands to do anything
other than succeed -- even when given bad inputs.

I'd like to see those stories improve, so that it becomes
more practical to write robust scripts.

- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to