Bill Allombert on Fri, 19 Nov 2010 14:03:27 +0100


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

Re: Member function change in 2.4.x?


On Thu, Nov 18, 2010 at 06:52:19PM -0800, John Kemeny wrote:
> Hello.
> 
> When I type:
> d.1=d[1]
> x=[1,2,3]
> x.1
> into version 2.3.4 I get the expected answer 1.
> 
> However, in version 2.4.3 I get the message 'unused characters' positioned over 
> the point (dot in 'x.1').
> 
> Is this point notation not upward compatible?

Hello John,
I have rewritten the parser code for PARI 2.4.3 but I did not know d.1 was allowed, so I did not
implement it. Sorry for the inconvenience.

In PARI 2.4.3, member function name must start by a letter: 
for example
d.n=d[1]
d.n1=d[1]
works.

Cheers,
Bill.