🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1993

Overloading?

#1993
From: Ben Stuyts
Date: Sat, 20 Apr 1991 06:06
19 lines
997 bytes
Today, I was trying to implement a fixed-point math module in M2,
containing routines like Add, Sub, Mul, Div, etc. Using these routines
really clutters your source with statements like:

  a := Add(Mul(b,c),d);

in stead of the more readable:

  a := b*c+d;

So what are people's opinions about adding operator overloading in M2?

Best regards,
Ben


--  
uucp: uunet!m2xenix!puddle!2!281!202.6!Ben.Stuyts
Internet: Ben.Stuyts@p6.f202.n281.z2.fidonet.org
Technical Details
Message-ID: <209.2812FBE7@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!zephyr.ens.tek.com!tektronix!percy!m2xenix!puddle!p6.f202.n281.z2.fidonet.org!Ben.Stuyts

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!zephyr.ens.tek.com!tektronix!percy!m2xenix!puddle!p6.f202.n281.z2.fidonet.org!Ben.Stuyts
From: Ben.Stuyts@p6.f202.n281.z2.fidonet.org (Ben Stuyts)
Newsgroups: comp.lang.modula2
Subject: Overloading?
Message-ID: <209.2812FBE7@puddle.fidonet.org>
Date: 20 Apr 91 06:06:56 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 2:281/202.6 - ST Quick BBS Haarle, Haarlem Holland
Lines: 19