Re: Resource naming convention

From: Date: Tue, 05 Dec 2000 14:17:48 +0000
Subject: Re: Resource naming convention
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333149@lists.php.net to get a copy of this message
On Tue, 05 Dec 2000, Stanislav Malyshev wrote: > Can I invent my own type, something like: > gmp_number gmp_add(gmp_number a, gmp_number b) > > or it will be too much? > > The reasons I don't like resource is: > a) not every resource fits, just specific kind or it > b) actually, in the example above a and b can be integers too, function > will deal with that automatically and convert them. Then declare the arguments as 'mixed' and explain in the GMP preface that 'mixed' in this case can mean a resource or a number. -Andrei * I don't have a solution but I admire the problem. *

« previous php.doc (#969333149) next »