Function design recomendation?
| From: | Fredrik Ohrn | Date: | Wed, 21 Mar 2001 18:40:47 +0000 |
| Subject: | Function design recomendation? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49652@lists.php.net to get a copy of this message | ||
I'm about to properly implement cpdf_set_viewer_preferences which is
currently just a stub.
The underlying function takes a struct with 8 fields.
I'd like to avoid having to specify 8 parameters to the PHP equivalent
(especially as most of them has sensible defaults).
How are structs 'emulated' in other places?
Regards,
Fredrik
--
Do fish get thirsty?
Fredrik Öhrn Chalmers University of Technology
ohrn@chl.chalmers.se Sweden