× 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.



I think I am confused, and the New Year's Eve libations have not even
started yet ;-)

When you say users wanted to allow CONST for variables, that can be
inz'd but not modified, isn't this the definition of a Constant.  If
you specify a 'C', and use the CONST keyword, voila.  You have
initialized a variable that can't be modified.

By variable, are you referring to using it in a Data Struct?  


On Thu, 30 Dec 2004 16:11:28 -0500, Barbara Morris <bmorris@xxxxxxxxxx> wrote:
> Joe Lee wrote:
> >
> > An interesting idea occurred to me while reading this. Would it be
> > possible to add constant qualified data structures? These constants
> > would be used and defined just like a variable qualified data structure.
> > So you would have something like the following.
> >
> 
> My memory has already gone on New Year's vacation ...
> 
> Const for variables was on our last enhancement survey (2002).  It got
> about 6% of the votes.  Maybe with an example like yours it would have
> scored higher ...
> 
> #38  $15   Allow keyword CONST for variables.  CONST variables can be
>            initialized, but not modified.  On procedure calls, they can
>            be passed only as CONST or VALUE parameters.
> 
> --
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
> 
> 


-- 
"Enter any 11-digit prime number to continue..."

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.