🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #345

Re: Overloading Operators: Extension to Language

#345
From: Pat Terry
Date: Fri, 06 Oct 1989 05:35
23 lines
1239 bytes
In Message-ID: <"89-10-03-22:05:28.25*UI0T"@DKAUNI2.BITNET> Koenig writes

 > How about an extension to the language which would allow functions to
 > return not only predefined types such as integers, reals and so on but
 > also records and arrays? 

That's supposed to be in already.  Certainly will be in the ISO standard.
Some compilres have always had it, others not - usual reason, PIM-2
doesn't discuss it, without saying that records and arrays are wrong either.

 > TYPE COMPLEX= RECORD RE,IM:REAL END;

But if you're proposing an extension, why not propose a proper COMPLEX?

 




--  
-----
uucp: { uunet!tektronix | sun!nosun }!qiclab!m2xenix!puddle!5!494!4.101!Pat.Terry
Internet: Pat.Terry@p101.f4.n494.z5.fidonet.org
Technical Details
Message-ID: <50.252CF8A1@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p101.f4.n494.z5.fidonet.org!Pat.Terry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p101.f4.n494.z5.fidonet.org!Pat.Terry
From: Pat.Terry@p101.f4.n494.z5.fidonet.org (Pat Terry)
Newsgroups: comp.lang.modula2
Subject: Re:  Overloading Operators: Extension to Language
Message-ID: <50.252CF8A1@puddle.fidonet.org>
Date: 6 Oct 89 05:35:55 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 5:494/4.101 - Settler City Fido, Grahamstown RSA
Lines: 23