-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no error when getting a variable that doesn't exist in current step #1387
Comments
@germasch "safe" code can be written by only doing a Get if the variable returned by InquireVariable is Safe streaming mode:
Now, I agree, if the variable doesn't exist |
Related to #1384 . Will refactor using lazy evaluation to separate random access (file engines only) from step-by-step BeginStep/EndStep (all engines) usage. |
Okay, so I hadn't realized it's that closely related to #1384, I thought I was doing something valid. Let me comment there. |
This is good, actually showing code allow us to see how enforcing a certain behavior will look like. Thanks. |
To reproduce:
The second test, when run, gives
The file doesn't contain the variable
x
in step 0, so I don't expect it to read anything (ie, non-initialized nonsense inx
is fine), but I do expect to get some kind of an error when theGet
call does not succeed.The text was updated successfully, but these errors were encountered: