This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: $return in wildcarded void functions


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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]