This is the mail archive of the kawa@sourceware.org mailing list for the Kawa 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: GSOC | Extending Common Lisp support


* Charles Turner [2012-06-13 23:09] writes:

> On 13 June 2012 23:53, Per Bothner <per@bothner.com> wrote:
>> What is the advantage over:
>>
>> @NeverReturns void signal(Throwable error) {
>> ? ? throw new RuntimeException(error);
>> }
>>
>> (where @NeverReturns is annotation I'm planning on adding).
>
> I interpreted it simply as void signal(String msg) { throw new
> RuntimeException(msg); }. Not sure what the point of having a
> throwable parameter is.

Yes, you probably alsow want to overload signal a version with plain
strings.  Tho, it could itself be:

RuntimeException signal(String msg) { throw signal(new Error(msg)); }

Helmut


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