× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There is nothing explicit on the CONST keyword telling it when to convert and when to just use a read only reference. This should be just as transparent.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx

-----rpg400-l-bounces@xxxxxxxxxxxx wrote: -----

To: rpg400-l@xxxxxxxxxxxx
From: Hans Boldt <hans@xxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
Date: 01/13/2010 04:22PM
Subject: Re: RPG overloading (was RPGV?)

Barbara Morris wrote:
Scott Klement wrote:
...
Obviously there'd have to be SOME SORT of keyword on the prototype
itself, otherwise you'd break backward compatibility. But I don't
think she was suggesting that it require you to specify the from/to
variable types.


There wouldn't necessarily have to be a new keyword. Currently, the
cases where this would be needed are the cases that don't compile.
Similar to the way CONST works, the compiler would only need to use this
temporary when it would otherwise issue a diagnostic.

I'm of at least two minds on this - part of me thinks the compiler could
just do it as needed, and part of me thinks there would need to be a
keyword.



Explicit is generally better. The semantics of this new kind of
mechanism are sufficiently different than normal reference parameters.
And even in cases that currently compile, you might still want the new
behavior.

Cheers! Hans

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.