You are right, a simple example now dumps as expected, though I'll have to
go through the rest of my code to see what exactly is pushing it as a
string. Somewhere in there is a wrong type assumption, or maybe not. I'll
take a look.
Ilya
> -----Original Message-----
> From: Simon Cozens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 17, 2001 7:15 PM
> To: Dan Sugalski
> Cc: Sterin, Ilya; ''[EMAIL PROTECTED] ' '
> Subject: Re: String/Number differentiation
>
>
> On Mon, Sep 17, 2001 at 07:09:56PM -0400, Dan Sugalski wrote:
> > At 03:49 PM 9/17/2001 -0600, Sterin, Ilya wrote:
> > >I guess the problem can be easily solved by converting to integer if a
> > >mathematical operation is performed, or a similar behavior.
> > >
> > >@array = ("one", "two", 3);
> > >
> > >All are now internally strings
> >
> > Yech.
>
> It's all right, they're not really:
>
> (-e:1) const(PV("one"\0))
> => * PV("one"\0)
> (-e:1) const(PV("two"\0))
> => * PV("one"\0) PV("two"\0)
> (-e:1) const(IV(3))
> => * PV("one"\0) PV("two"\0) IV(3)
> (-e:1) pushmark
> => * PV("one"\0) PV("two"\0) IV(3) *
> (-e:1) gv(main::array)
> => * PV("one"\0) PV("two"\0) IV(3) * GV()
> (-e:1) rv2av
> => * PV("one"\0) PV("two"\0) IV(3) * AV()
> (-e:1) aassign
>
> --
> All the good ones are taken.