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


  • Subject: RE: C style assignment of variable values
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Tue, 5 Oct 1999 14:19:44 -0700

Resounding yes to increment operators. 

I think we could avoid confusion by limiting it to postfix only.  We don't
want to get to the stage where RPG training includes exercises where the
student has to figure out what single lines of code do.  

More C class memories--we were allowed to bring a table of operator
precedence to all tests.  (I know, the teacher was kind of soft on us.)

> -----Original Message-----
> From: Stone, Brad V (TC OASIS) [mailto:bvstone@taylorcorp.com]
> Sent: Tuesday, October 05, 1999 12:42 PM
> To: 'RPG400-L@midrange.com'
> Subject: RE: C style assignment of variable values
> 
> 
> Don't forget
> 
> eval      c++
> !!!
> 
> Bradley V. Stone
> Taylor Corporation - OASIS Programmer/Analyst 
> bvstone@taylorcorp.com
> 
> 
> 
> > -----Original Message-----
> > From: Eric N. Wilson [mailto:doulos1@home.com]
> > Sent: Tuesday, October 05, 1999 1:19 PM
> > To: RPG400-L@midrange.com
> > Subject: C style assignment of variable values
> > 
> > 
> > Hans and Company,
> > 
> > Would it be possible to make the following expression valid 
> in future
> > versions of the compiler???
> > 
> > EVAL    C_NumRecs = C_MailFlags = C_UserFlags = 0
> > 
> > And no I do not need to put a statement terminator on the end 
> > of that :-)
> > 
> > It seems that evaluation of this sort of expression should be 
> > easy when
> > evaluated from right to left (like C does). Not a big thing 
> > but I like to do
> > that sort of thing to reduce initializations to a small block 
> > of code. And
> > yes I know that there are a million and one ways to achieve 
> > the same goal,
> > Named datastructure with initializations etc... I just find 
> > the above to be
> > readable and love to know what I am initializing near the 
> > code that I am
> > working with.
> > 
> > Thanks
> > Eric
> > ______________________________________________________________
> > Eric N. Wilson
> > President
> > Doulos Software & Computer Services
> > 2913 N Alder St
> > Tacoma WA 98407-6226
> > 
> > +---
> > | This is the RPG/400 Mailing List!
> > | To submit a new message, send your mail to RPG400-L@midrange.com.
> > | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to 
> > RPG400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator: 
> > david@midrange.com
> > +---
> > 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to 
> RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: 
> david@midrange.com
> +---
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.