RE: Exception stack: let's use the @@ list.

[email protected] ("Brust, Corwin") Wed, 23 Aug 2000 10:46:17 -0500
Newsgroups perl.perl6.language.errors
Message-ID <[email protected]>
<quote>
-----Original Message-----
From: Tony Olekshy [mailto:[email protected]]
Sent: Tuesday, August 22, 2000 8:26 PM
To: [email protected]
Subject: Re: Exception stack: let's use the @@ list.


> Ok, uncle.

Thanks.

</quote>

Hey, when your right...

<quote>
> I think C<throw> was already going to operate on $@ by default, what
> about C<warn>?

Throw can't take no arguments because its a constructor, not a function.
</quote>

If $@ always contains an exceptions we don't need to construct one to throw.

So throw:
	no arguments but somthing in $@  => throw $@
	no arguments and nothing in $@ => runtime error

Am I just being thick here?

<quote>
warn, no arguments? If $@ it should do $@." at line blah file blah", and
if !$@ it should do "warning at line blah file blah.".
</quote>

Yah!  That would realy nice.

-Corwin