× 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: MOVEA -> EVAL
  • From: Jim Langston <jimlangston@xxxxxxxxxxxxxxxx>
  • Date: Mon, 18 Jun 2001 14:10:09 -0700
  • Organization: Pacer International

Ahhh, I remember why I hate it now.  It was a line of code I saw
one time in a basic I was supposed to maintain.

var1 = var2 = var3 = var4 = var5 = 0 = var6

What is Var1 going to be?

Ooops, not 0, unless var6 is not zero.  The last 0 = Var6 is
actually a comparison (same as saying Var1 = Var2... = 0 == Var6 in C).
In the language at the time, Var1 would either be -1 (all bits set)
or 0.  Since that day I hated it, when I was spending hours trying to
figure out why Var2 wasn't 0.

Regards,

Jim Langston

James David Rich wrote:
<SNIP> 
> var1 = var2 = var3 = ... = varn = value
> 
> is common across C, C++, java, bash, perl, blah blah.  You mean there are
> moronic compilers that don't get this right?
> 
> James Rich
> james@eaerich.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-Ups:
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.