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


Frank Ch. Eigler wrote:
On Wed, Mar 07, 2007 at 11:05:12AM -0600, David Smith wrote:
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

Ah, the idea makes sense now. But, how would the above translate? Would the entire statement get deleted (if $var didn't exist)?


--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


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