🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2331

Missing from Modula-2

#2331
From: Ian Moor
Date: Tue, 18 Jun 1991 09:19
20 lines
989 bytes
Why, if the function f returns a pointer can I not write:

       f(x)^.field := ...

instead of:

       temporary := f(x);
       temporary^.field := ...

o.k so the compiler has to allocate a temporary location. I notice that
the DECWRL compiler will cope with this by the way.
--
Ian W Moor
  Internet: iwm@doc.ic.ac.uk
  JANET: iwm@uk.ac.ic.doc
           
 Department of Computing,  That which you call a crime when one man does it,
 Imperial College.         you call government when done by many.
 180 Queensgate          
 London SW7 UK.          
Technical Details
Message-ID: <IWM.91Jun18101949@swan.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!icdoc!iwm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!icdoc!iwm
From: iwm@doc.ic.ac.uk (Ian Moor)
Newsgroups: comp.lang.modula2
Subject: Missing from Modula-2
Message-ID: <IWM.91Jun18101949@swan.doc.ic.ac.uk>
Date: 18 Jun 91 09:19:49 GMT
Distribution: comp
Organization: Department of Confusion, Imperial College, London UK
Lines: 20
Nntp-Posting-Host: swan.doc.ic.ac.uk