🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #276

Re: Re: Double Width Integer Multiplication and Division

#276
From: Marc `Play Ball!' Sabatella
Date: Thu, 06 Jul 1989 21:44
19 lines
993 bytes
>	q,r = x/y;

Back in school, we learned a language that allowed this sort of thing.
It may have been the language "Clu", from MIT, but I am not sure.

>>>What languages allow the user to introduce additional operator
>>>symbols?
>> 
>> C++ and Ada.
>
> 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.
Technical Details
Message-ID: <5160018@hpfcdc.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!marc
References: <1387@l.cc.purdue.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!marc
From: marc@hpfcdc.HP.COM (Marc `Play Ball!' Sabatella)
Newsgroups: comp.lang.misc
Subject: Re: Re: Double Width Integer Multiplication and Division
Message-ID: <5160018@hpfcdc.HP.COM>
Date: 6 Jul 89 21:44:15 GMT
References: <1387@l.cc.purdue.edu>
Organization: HP Ft. Collins, Co.
Lines: 19