At 08:06 PM 1/4/2002 +0000, Simon Cozens wrote:
>On Fri, Jan 04, 2002 at 02:57:29PM -0500, Jason Gloudon wrote:
> > This makes PerlUndef somewhat functional by adding logical,
> > arithmetic, and repeat methods.
>
>Cool, thanks.
Want to apply the bits you want, then? Or shall I commit the whole thing?
> > STRING* get_string () {
> > - return NULL;
> > + return string_make(INTERP,NULL,0,NULL,0,NULL);
> > }
>
>I did this as essentially an assertion, to make sure that people
>check string pointers before merrily derefering them. Everything
>ought to be able to cope with NULL strings.
Which is a good point.
> > void add_same (PMC * value, PMC* dest) {
> > + dest->vtable->set_integer_native(INTERP, dest, 0);
> > }
>
>Adding undef to undef? Why bother? :)
Who needs to initialize variables anyway? :)
We need to add in some warning code, I think. I'll stub out an interface.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk