[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
assigning to ans var when using Ctrl+C
From: |
Rik |
Subject: |
assigning to ans var when using Ctrl+C |
Date: |
Thu, 21 Nov 2013 13:57:17 -0800 |
11/21/13
Michael,
This is a small issue, but perhaps it has an easy solution.
When I use Ctrl+C to interrupt a system() command, I still get an
assignment to the automatic variable ans. The value was 2 on a Linux
system and -1.0737e+009 on MinGW. It would be nice to avoid any kind of
assignment, but if one must be made it would be nicer to use a value like
NaN to indicate that the answer variable is gibberish.
--Rik
- assigning to ans var when using Ctrl+C,
Rik <=