🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1994

Re: Overloading?

#1994
From: George Emery
Date: Mon, 22 Apr 1991 17:03
15 lines
998 bytes
>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;
>

Whenever I've written fixed point routines, I've always scaled INTEGERS
and LONGINTs when printing.  The advantage is that you can still use
+, -, *, / in the normal fashion.  You then merely need to remember to
use the correct i/o routines.  [Perhaps this is a good example of why
we shouldn't have standard i/o packages?]
Technical Details
Message-ID: <1991Apr22.170333.9180@m2xenix.psg.com>
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!george
References: <209.2812FBE7@puddle.fidonet.org>

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!george
From: george@m2xenix.psg.com (George Emery)
Newsgroups: comp.lang.modula2
Subject: Re: Overloading?
Message-ID: <1991Apr22.170333.9180@m2xenix.psg.com>
Date: 22 Apr 91 17:03:33 GMT
References: <209.2812FBE7@puddle.fidonet.org>
Organization: Pacific Systems Group, Portland Oregon US
Lines: 15