- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I have a subroutine local variable (Real) that is allowed to be on the stack, I don't initialize the variable in the routine and call another subroutine and pass that variable as an argument (knowing the called routine will set it and return). Can there be a problem with FP Execptions? If the stack value is such that that varible ends up being NaN, can it cause the program to throw an exception by passing that NaN to the subroutine?
Dave
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, because what you're really passing is the address of the variable, not its value. As long as you store into it before reading from it, you'll be fine.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page