🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.oberon
Article #1309

Re: Why no Complex Arithmetic ?

#1309
From: jneuhof
Date: Wed, 10 Apr 1996 20:13
22 lines
1109 bytes
In <225BC72BH00088B82H@p.froehlich.amc.cube.net>, p.froehlich@amc.cube.net (Peter Froehlich) writes:
>
>   Although  a  complex  type seems pleasing, I'm not yet convinced that it
>really  would  cause  a lot of algorithms to be converted to actually using
>COMPLEX  instead  of  REAL.   Please  give  me  an  example  algorithm that
>*seriously* benefits from a COMPLEX type.
>

What is missing in Oberon-2 is something like type-bound operators,
implemented similar to type-bound procedures.

E.g.:

PROCEDURE( COMPLEX ) "+" 
( VAR RVal1 : COMPLEX; 
  VAR RVal2 : COMPLEX
) : COMPLEX;
BEGIN
  ....
END "+";

Juergen Neuhoff
Technical Details
Message-ID: <4kh4q3$vtu@news-s01.ny.us.ibm.net>
Path: arc1-ca.pugleaf.net!news-m01.ny.us.ibm.net!usenet
References: <danforth.828397346@Turing.Stanford.EDU> <4js4dk$f7v@ra.nrl.navy.mil> <225BC72BH00088B82H@p.froehlich.amc.cube.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news-m01.ny.us.ibm.net!usenet
From: jneuhof@ibm.net
Newsgroups: comp.lang.oberon
Subject: Re: Why no Complex Arithmetic ?
Date: 10 Apr 1996 20:13:52 GMT
Message-ID: <4kh4q3$vtu@news-s01.ny.us.ibm.net>
References: <danforth.828397346@Turing.Stanford.EDU> <4js4dk$f7v@ra.nrl.navy.mil> <225BC72BH00088B82H@p.froehlich.amc.cube.net>
Reply-To: jneuhof@ibm.net
NNTP-Posting-Host: slip166-72-132-99.tx.us.ibm.net
X-Newsreader: IBM NewsReader/2 v1.03