- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Having uninitialized variables is, of course, poor practice but inevitable. Using options like Qzero is not much better. Zero is too forgiving. On legacy hardware (e.g., CDC 7600) I would always preset memory to infinite or indefinite values because the use of such values in ANY arithmetic operation immediately threw a MODE error. The question is then twofold:
(1) is there a way to set undefined variables scalars and arrays to a characteristic value that if used in an arithmetic operation will cause an immediate error, and
(2) what is a hex value that will result in such behavior.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The only choice we offer here is zero or, for floating point, a "signaling NaN", For integers, zero is your only option. /init:snan /init:arrays is probably what you want (but this requires a current version.)
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page