Re: cvs: pear /Math_Vector Tuple.php

From: Date: Thu, 25 Apr 2002 10:30:33 +0000
Subject: Re: cvs: pear /Math_Vector Tuple.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3545@lists.php.net to get a copy of this message
--- "Stig S. Bakken" <ssb@fast.no> wrote: > On Thu, 2002-04-25 at 01:39, Jesus M. Castagnetto > wrote: [...snip...] > > + new PEAR_Error("An unidimensional array is > needed to initialize a Tuple", > > + null, PEAR_ERROR_DIE); > > You don't need to do this anymore. This is all you > need: > > PEAR::raiseError("message"); > > Unless something really critial is wrong, you should > not specify an > error level at all when raising the error, because > then error handlers > will not be able to catch it. > > - Stig Saw that afterwards when I updated my local pear from CVS. Also, I was looking into moving Tuple (as well as List, Set and Bag) into a Collection package. Any reasons why not? Basically a Tuple should be immutable (to follow other similar constructs in other languages), a Set is mutable but contains only unique values (like math sets), a Bag (or multi-set) can contain repeated values and the order is not important. A List is like a Bag, but the values have an associated index. BTW, is there are .xsd version of package.dtd? ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/

« previous php.pear.cvs (#3545) next »