Igor Schein on Mon, 22 Sep 2003 14:50:33 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: peculiar Set/eval behavior


On Mon, Sep 22, 2003 at 05:40:10PM +0200, Karim BELABAS wrote:
[snip]
> My patch (updated a few minutes ago, btw) to GENtoGENstr [ from gtoset ] makes
> sure output mode is f_RAW and no extra "beautifying" spaces are added.

Oh, I got excited for a second that instead of

? default(output,0)
   output = 0 (raw)
? x^2+1
%1 = x^2 + 1

I would see

? default(output,0)
   output = 0 (raw)
? x^2+1
%1 = x^2+1

I guess "no extra spaces" comment doesn't apply here.

So I guess I'm gonna have to continue using these crude hacks:

printf(p) = local(v=Vec(Str(p)), k); for(k=1,#v,if(v[k]!=" ",print1(v[k])));print("")
printf1(p) = local(v=Vec(Str(p)), k); for(k=1,#v,if(v[k]!=" ",print1(v[k])))

Igor