Article View: comp.lang.modula2
Article #334Re: Overloading Operators: Extension to Language
From: Robert Firth
Date: Thu, 05 Oct 1989 13:21
Date: Thu, 05 Oct 1989 13:21
12 lines
1209 bytes
1209 bytes
In article <INFO-M2%89100500031512@UCF1VM> Modula2 List <INFO-M2%UCF1VM.BITNET@PSUVM.PSU.EDU> writes: >I really don't see what the arguement is. If you wan't to return an >array or record why not just return the pointer? Visually it is still >obvious in the code what you are doing and is fast also. If you want >to return a new record or array, then there is NEW or ALLOCATE. Leaving aside the efficiency considerations of using dynamic storage needlessly, you still cannot do it this way. The syntax of Modula-2 does not allow the result of a function call to be dereferenced. Yet another mindlessly stupid restriction whose sole purpose seems to be to enforce one person's view of programming style on the world.
Technical Details
Message-ID:
<4337@bd.sei.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!pt.cs.cmu.edu!sei!firthReferences:
<INFO-M2%89100500031512@UCF1VM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!pt.cs.cmu.edu!sei!firth From: firth@sei.cmu.edu (Robert Firth) Newsgroups: comp.lang.modula2 Subject: Re: Overloading Operators: Extension to Language Message-ID: <4337@bd.sei.cmu.edu> Date: 5 Oct 89 13:21:38 GMT References: <INFO-M2%89100500031512@UCF1VM> Reply-To: firth@sei.cmu.edu (Robert Firth) Organization: Software Engineering Institute, Pittsburgh, PA Lines: 12