> < ^ Date: Tue, 27 Jul 1993 08:01:39 +0200
> < ^ From: Martin Schoenert <martin.schoenert@math.rwth-aachen.de >
< ^ Subject: Re: Redefining "+, -, *, =," etc.

Philip Osterlund writes in his e-mail message of 1993/07/27
I would like to be able to create a domain in which I redefine addition
and multiplication. I was able to do so in version 3.1, but I'm having
difficulty in version 3.2. These are defined as functios, as shown
below.

...example deleted...

But I can't access these functions. The obvious guess is:

gap> ops.=;
Syntax error: record component name expected

What used to work is:

gap> ops.'=';
Syntax error: record component name expected

Another possible guess is:

gap> ops."=";
Syntax error: record component name expected

The single quotes are now used to specify character constants, i.e.,
'=' is the equal character. There are two possibilities.

gap> ops.\=;
function ( left, right ) ... end
gap> ops.("=");
function ( left, right ) ... end

The first is preferrable, because in the second one the string value is
looked up at runtime.

Martin.

-- .- .-. - .. -.  .-.. --- ...- . ...  .- -. -. .. -.- .-
Martin Sch"onert,   Martin.Schoenert@Math.RWTH-Aachen.DE,   +49 241 804551
Lehrstuhl D f"ur Mathematik, Templergraben 64, RWTH, 52056 Aachen, Germany

> < [top]