Path: 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 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