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



On 7/20/2015 5:15 PM, Barbara Morris wrote:
On 7/17/2015 7:21 AM, Wilson, Jonathan wrote:
...
(1) I can live with better type checking on indicators at compile time,
the specific code in the original source used a tri-state - blank for
not initialised and *ON/*OFF for state (roll up/Down, blank meant no
roll key pressed... it made sense at the time.). But! The runtime does
no such checking, I can move a character field not containing "1"/"0"
into an indicator and it doesn't complain during the move or when
tested, however the result can be unpredictable. It also changed how
CLEAR worked, originally it cleared the indicator defined field (blanked
it) but then with RPG IV changed to "0"ing it.

I would hunt down all those tri-state "indicators" and change them to
true character. The main risk is that somebody codes "if myInd" by
mistake instead of "if myind = rollUp". If the value is neither '0' nor
'1', it's undefined behaviour whether the "if" statement would return
true or false.

http://thedailywtf.com/articles/What_Is_Truth_0x3f_

Read the comments!



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.