Jeffrey Ratcliffe wrote:
Secondly, I can't seem to make the arguments optional. Despite the
PROTOTYPE: ;$$
line, the c code produces still starts:
if (items != 3)
Perl_croak(aTHX_ "Usage: Fract::new(CLASS, arg1, arg2)");
{
I'd be grateful for any ideas.
Thanks
Jeff
XS fragment:
fract *
fract::new(arg1, arg2)
I don't know about the casting problem, but that line needs to be
fract::new(arg1, arg2, ...)
in order to get optional arguments.
--
------------------------------------------------
Radan Computational Ltd.
The information contained in this message and any files transmitted with it are
confidential and intended for the addressee(s) only. If you have received this
message in error or there are any problems, please notify the sender
immediately. The unauthorized use, disclosure, copying or alteration of this
message is strictly forbidden. Note that any views or opinions presented in
this email are solely those of the author and do not necessarily represent
those of Radan Computational Ltd. The recipient(s) of this message should check
it and any attached files for viruses: Radan Computational will accept no
liability for any damage caused by any virus transmitted by this email.