Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: levi@localhost.nc3a.nato.int
Subject: array indexes
Date: 14 Oct 2001, 10:12:33
> Maurice Lombardi wrote: > > > > either passed by value or by reference, for optimisation purposes, > > and this is checked in the programs cstpar1.pas / cstpar2.pas > > of the test suite. > > Now both a value parameter or a var parameter is OK, only const complains. > > I am new here, but an old hand at Pascal and Pascal > implementation. > > Will somebody please explain why this 'const' extension exists at > all? A non VAR parameter is always passed by value, so the > original cannot be modified. Thus I see absolutely no purpose to > it. For performance reasons I think, specially with larger structures. Newer Delphi's also have an OUT extension. (writeonly) to complete the number of possibilities. The reasons for that are afaik related to the Windows Api.
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| CBFalconer | array indexes | 13 Oct 2001, 18:00:41 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).