25.10.2013 13:30, Rainer Gerhards:
And, indeed, it will work as expected. Each message will get it's number
in shadow copy.
But what if a user tries this (to retain previous value, for example):
set $.local = $/var;
set $/var = $/var + 1;
$/var will be shadowed at first statement, but modified AND propagated at
second one.
This would violate restriction 1 ("no update after initial access") and
lead to a runtime error. But I guess you looked at the pseudocode, and
indeed it was missing the reset of the modifiable attribute (which enforces
that restriction).
Do you agree?
Yes, it will work.
Overall, it is almost the same restriction as I have proposed earlier.
Difference is in that there is a shadow, which lets user read the same
value many times from cached copy. But he still can access the state
variable only once.
--
Pavel Levshin
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.