🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2293

Re: Why no ** operator in Modula2?

#2293
From: Ben Stuyts
Date: Fri, 31 May 1991 03:50
19 lines
1257 bytes
dww@math.fu-berlin.de (Debora Weber-Wulff) writes:

 DW> The question came up in class today: Why is there no ** or ^
 DW> (x to the nth power) operator in standard Modula2?
 DW> To make you start your own private module collection of goodies?
 DW> Because it is machine dependant???

Probably because it is the spirit of Wirth's languages that they are
easy to parse and it is easy to generate code for the underlying machine
architecture. And as there are usually no 'power' type instructions, Wirth
did not add it to the language but put it in the MathLib library instead.

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: <1302.284A5A7F@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!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!wuarchive!uunet!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: Re: Why no ** operator in Modula2?
Message-ID: <1302.284A5A7F@puddle.fidonet.org>
Date: 31 May 91 03:50:40 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 2:281/202.6 - ST Quick BBS Haarle, Haarlem Holland
Lines: 19