$return in wildcarded void functions

Frank Ch. Eigler fche@redhat.com
Wed Mar 7 17:35:00 GMT 2007


On Wed, Mar 07, 2007 at 11:05:12AM -0600, David Smith wrote:
(please trim!)

> [...]
> Hmm, I'm missing something.  Why do we need $?var *and* $!var?  It seems 
> like $?var would suffice.

The reason why it doesn't becomes clear with an example, and with the
realization that $var would still trigger a *translate-time* error if
it did not exist in context.

   if ($?var) { use($!var) } // works even if $var would fail to translate

- FChE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070307/25f44bba/attachment.sig>


More information about the Systemtap mailing list