🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #277

Re: Re: Double Width Integer Multiplication and Division

#277
From: Dik T. Winter
Date: Fri, 07 Jul 1989 20:32
18 lines
1098 bytes
In article <5160018@hpfcdc.HP.COM> marc@hpfcdc.HP.COM (Marc `Play Ball!' Sabatella) writes:
 > > But I do not believe that C++ or Ada allows one to define
 > >symbols or symbol combinations as infix operators.
 > 
 > I don't know about C++, but Ada certainly does have this ability:
 > you simply define a function something like this:
 > 
 > 	function "\" (in x, y:integer) returns integer is begin ... end;
 > 
 > modulo my rusty syntax.

Disregarding the bad syntax; this is not allowed.  In Ada you can only
redefine the predefined operators (with some exceptions).  So a
declaration for "\" is not allowed.
-- 
dik t. winter, cwi, amsterdam, nederland
INTERNET   : dik@cwi.nl
BITNET/EARN: dik@mcvax
Technical Details
Message-ID: <8256@boring.cwi.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!dik
References: <1387@l.cc.purdue.edu> <5160018@hpfcdc.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!dik
From: dik@cwi.nl (Dik T. Winter)
Newsgroups: comp.lang.misc
Subject: Re: Re: Double Width Integer Multiplication and Division
Message-ID: <8256@boring.cwi.nl>
Date: 7 Jul 89 20:32:44 GMT
References: <1387@l.cc.purdue.edu> <5160018@hpfcdc.HP.COM>
Organization: CWI, Amsterdam
Lines: 18