Article View: comp.lang.oberon
Article #1312Re: Why no Complex Arithmetic ?
From: Mike Griebling
Date: Thu, 11 Apr 1996 10:26
Date: Thu, 11 Apr 1996 10:26
27 lines
1310 bytes
1310 bytes
> 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 Even if Oberon-2 had type-bound infix operators, you still would not be able to return structured types from a function so any types would have to be implemented as pointers. While not especially difficult it would make the garbage collector work much harder tracking all the freed variables which could have been stack-based instead of heap-based. Regards, Michael -------------------------------------------------------------- Michael Griebling, P. Eng. grieblm@inforamp.net Computer Inspirations grieblm@trt.allied.com
Technical Details
Message-ID:
<9604110956.AA02688@trt.allied.com>Path:
arc1-ca.pugleaf.net!inf.ethz.ch!oberon-news@inf.ethz.chShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!inf.ethz.ch!oberon-news@inf.ethz.ch From: grieblm@trt.allied.com (Mike Griebling) Newsgroups: comp.lang.oberon Subject: Re: Why no Complex Arithmetic ? Date: 11 Apr 1996 12:26:57 +0200 Organization: Dept. Informatik, Swiss Federal Institute of Technology Sender: server@inf.ethz.ch Distribution: world Message-ID: <9604110956.AA02688@trt.allied.com> Reply-To: oberon-news@inf.ethz.ch NNTP-Posting-Host: neptune.inf.ethz.ch Originator: oberon-news@inf.ethz.ch