MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

data structure definition?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16276] data structure definition?
  • From: "schatzi" <antoine.zahnd at iprolink.ch>
  • Date: Fri, 5 Mar 1999 00:41:35 -0500
  • Organization: Internet Prolink SA Customer
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I am stuck with the following:

I would like to define a data structure, say point[x,y], to be able to
write p = point[1,0]; q = point[-1,2];

Then overloading the + operator would be nice, as well as the output
operator.

Your first aids will be greatly appreciate.
Thank you.

antoine.zahnd at iprolink.ch


  • Prev by Date: Mathlink packets
  • Next by Date: Changing Precedence of an operator
  • Previous by thread: Mathlink packets
  • Next by thread: Re: data structure definition?