Re: Resource naming convention
| From: | @work) | Date: | Tue, 05 Dec 2000 11:42:57 +0000 |
| Subject: | Re: Resource naming convention | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969333148@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
>
> ES(>> resource is a valid type. Look at phpdoc/funcsummary.txt and you will
> ES(>> find it frequently.
>
> 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.
I think it wouldn't fit in the already documented scheme. If you look
into Rasmus booklet, you will find only int, double, string, array,
void, and mixed. If gmp_number is a resource than the return and the
argument type should be a resource.
-Egon
--
SIX Offene Systeme GmbH · Stuttgart - Berlin - New York
Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de