🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.oberon
Article #786

Re: Oberon/F: Returning extended types.

#786
From: Peter Froehlich
Date: Fri, 12 Jan 1996 16:43
30 lines
1842 bytes
Hi!

On Fr 05.01.1996 around 11:06:23 bjenkin@vub.ac.be (JENKINS BART MBA) wrote
in message "Oberon/F: Returning extended types.":

>   Does Oberon/F restrict one to ONLY returning a BASIC type 
> (REAL, INTEGER,... etc)
> or is there a way to return a RECORD type without using a pointer.  Example:
> 
> TYPE
>  S = ARRAY 12 OF CHAR;
> 
> PROCEDURE GetS : S;     <-- Will not compile.

   Some vocabulary first:  You're talking about a _structured_ type, not an
_extended_ type as you indicate in the subject line.  Anyway...

   Wirth  imposed  this "implementation restriction" on Oberon from day one
and  most  compilers  adhere  to it.  Certain compiler (eg.  AmigaOberon by
A+L)  provide  support  for  returning structured types, but unless someone
finally  gets  ANSI/ISO  to work on an Oberon standard you're unportable by
using those features.

   Sad but true:  No _good_ standard = No protability.  Even with Oberon.
                      _
--- By(T)e...      _ //   "C++ is already too large and complicated..." ---
---       Peter... \X/\miga - "Gegen den Strom!" -- ANSI-X3J16/ISO-WG21 ---

e-mail: p.froehlich@amc.cube.net iam: GCS/O d- s:+ a-- C++(++++) UB P? L E-
W N++ K? w-- O- M V PS PE- Y+ PGP+ t+ 5- X? R+ tv- b++ DI? D+ G e h! r-- y+
Technical Details
Message-ID: <21EA5EDCH000D6D82H@p.froehlich.amc.cube.net>
Path: arc1-ca.pugleaf.net!amc.cube.net!p.froehlich
References: <4cit6v$qmv@rc1.vub.ac.be>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!amc.cube.net!p.froehlich
From: p.froehlich@amc.cube.net (Peter Froehlich)
X-Newsreader: -- The Answer V3.06
Newsgroups: comp.lang.oberon
Subject: Re: Oberon/F: Returning extended types.
Date: Fri, 12 Jan 1996 17:43:56 +0100
Message-ID: <21EA5EDCH000D6D82H@p.froehlich.amc.cube.net>
Organization: AMIGA CITY - Public Amiga-BBS, Munich, Germany
References: <4cit6v$qmv@rc1.vub.ac.be>
X-Gateway: ZCONNECT ?? amc.cube.net [Z-NEWS 2.5d/AMIGA]
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0