-
Notifications
You must be signed in to change notification settings - Fork 63
RESOLVE_ALL revisited #1963
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
RESOLVE_ALL revisited #1963
Conversation
… cw_field to work correctly (atv uses cw_field for its editables text fields). behaviour is now OK for cw_field and change suggested by @klimpel should still be OK too.
…as written in editable text in some cases.
This is great - many thanks for implementing this - it will be really useful. I notice that it does not behave the same as IDL wrt the round-bracket-ambiguity between functions and arrays.
IDL would only look for b.pro if there was a keyword used in the call (which would confirm that b is a fn not an array). I see this can be worked around by using the SKIP keyword (or better by changing to square brackets in the source). |
Thanks for the example, this is a bug indeed. You'll notice that:
so GDL is not looking for a function when running the procedure. More exactly, it looked for a function, found none, so switched to the next possible interpretation, an array (b) member. |
@rsiddans GDL will work better and even a bit faster if all procedures have been updated to IDL's STRICTARR syntax, i.e., square brackets for arrays, and the interpreter forced globally to the 'new' behaviour with the switch Actually the present state of RESOLVE_ALL permits to find those 'old syntax' procedures, as you have observed, (and some typos in the calling of exiting functions!) and normally people can edit these files and correct the syntax. I wonder if it is a good thing to work on #1965 . |
See #2027 and also note the existence of --trace-old-syntax switch described therein. |
Should REALLY resolve ... ALL
except perhaps some object procedures - to be tested, please report issues .