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
[dev.icinga.com #8074] Figure out how variable scopes should work #2429
Comments
Updated by gbeutner on 2014-12-12 05:20:58 +00:00 This would allow us to easily pass a macro() function to macro expressions. |
Updated by mfriedrich on 2014-12-12 09:49:20 +00:00
|
Updated by gbeutner on 2014-12-13 16:49:29 +00:00
|
Updated by gbeutner on 2014-12-15 10:22:28 +00:00 The main problem is that assignments in objects must bind to the "current" scope as opposed to the local scope. I.e. in the following example the assignment in the inner dict assigns to the inner dict:
This is obviously what people expect for Icinga. However for functions this is somewhat counter-intuitive:
One thing we could do is to only use BindToScope() in objects and apply. |
Updated by gbeutner on 2014-12-15 10:33:48 +00:00 Hm, this would break:
|
Updated by icinga-kanban on 2014-12-15 15:12:01 +00:00 Build !#370 triggered by commit 928bf63 passed successfully. Branch: origin/master |
Updated by gbeutner on 2014-12-18 16:25:39 +00:00
|
Updated by gbeutner on 2015-01-12 13:49:26 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/8074
Created by gbeutner on 2014-12-11 21:10:01 +00:00
Assignee: gbeutner
Status: Closed (closed on 2015-01-12 13:49:26 +00:00)
Target Version: 2.3.0
Last Update: 2015-02-13 06:46:15 +00:00 (in Redmine)
http://en.wikipedia.org/wiki/Scope\_%28computer\_science%29#Dynamic\_scopingChangesets
2014-12-13 16:48:58 +00:00 by gbeutner dd4c04a
2014-12-14 10:33:45 +00:00 by gbeutner 1cb0231
2014-12-14 10:55:44 +00:00 by gbeutner b40e95d
2014-12-14 13:08:41 +00:00 by (unknown) 262bfb7
2014-12-15 05:02:59 +00:00 by (unknown) 343d46b
2014-12-15 05:03:13 +00:00 by (unknown) 8c9fdb5
2014-12-15 11:58:55 +00:00 by gbeutner 252f320
2014-12-15 14:12:24 +00:00 by gbeutner dcaad50
2014-12-15 15:09:17 +00:00 by gbeutner 77806b9
2014-12-15 15:42:34 +00:00 by (unknown) b9831f0
2014-12-15 16:23:18 +00:00 by (unknown) d72bd4f
2014-12-16 09:37:21 +00:00 by gbeutner 0724c0c
Relations:
The text was updated successfully, but these errors were encountered: