Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Q: exception objects

Newsgroups: perl.perl6.internals
Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <l...@toetsch.at>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Received: (qmail 60885 invoked from network); 22 Jun 2004 14:34:09 -0000
Received: from x1.develooper.com (63.251.223.170)
  by onion.develooper.com with SMTP; 22 Jun 2004 14:34:09 -0000
Received: (qmail 15363 invoked by uid 225); 22 Jun 2004 14:34:09 -0000
Delivered-To: perl6-intern...@perl.org
Received: (qmail 15358 invoked by alias); 22 Jun 2004 14:34:08 -0000
X-Spam-Status: No, hits=-4.9 required=8.0
	tests=BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received: from mail.nextra.at (HELO mail.nextra.at) (195.170.70.86)
  by la.mx.develooper.com (qpsmtpd/0.27.1) with ESMTP; Tue, 22 Jun 2004 07:34:03 -0700
Received: from lux.leo.home (at24a01-dial-162.nextranet.at [195.170.73.162])
	by mail.nextra.at (8.13.0.Beta2/8.13.0.Beta2) with ESMTP id i5MEX0OZ022085
	for <perl6-intern...@perl.org>; Tue, 22 Jun 2004 16:34:00 +0200 (MEST)
Received: from toetsch.at (unknown [192.168.1.130])
	by lux.leo.home (Postfix on linux 2.0.36 (i386)) with ESMTP id D9C7C118023
	for <perl6-intern...@perl.org>; Tue, 22 Jun 2004 14:56:19 +0200 (MEST)
Message-ID: <40D82C8F.1010903@toetsch.at>
Date: Tue, 22 Jun 2004 14:56:47 +0200
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3
X-Accept-Language: en
MIME-Version: 1.0
To: Perl 6 Internals <perl6-intern...@perl.org>
Subject: Q: exception objects
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j
X-Spam-Rating: onion.develooper.com 1.6.2 0/1000/N
Approved: n...@nntp.perl.org
From: l...@toetsch.at (Leopold Toetsch)

Pie-thon has Exception objects. We'll need such beasts too. So:
1) How do we "translate" Python classes? Properties only? Or
    full ParrotClass objects?
2) We'll need to classify our exceptions somehow so that we can model an 
exception class hierarchy. We'll also need to catch specific exceptions 
properly so that:

   # from b1.py - pseudo code
   try:
     n = self.P0(n+1)   # recursive
   except RuntimeError:
     # pass
   return n

can catch specific exceptions.

Comments welcome.
leo