Roxen.git/
server/
etc/
modules/
RXML.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2002-01-30
2002-01-30 00:10:29 by Martin Stjernholm <mast@lysator.liu.se>
65ca737297f5e95dc8a0aeef4264126cb2db4fc9 (
17
lines) (+
16
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added Context.signal_var_change.
Rev: server/etc/modules/RXML.pmod/module.pmod:1.265
2:
// // Created 1999-07-30 by Martin Stjernholm. //
-
// $Id: module.pmod,v 1.
264
2002/01/
07
17
:
15
:
46
mast Exp $
+
// $Id: module.pmod,v 1.
265
2002/01/
30
00
:
10
:
29
mast Exp $
// Kludge: Must use "RXML.refs" somewhere for the whole module to be // loaded correctly.
1916:
} }
+
void signal_var_change (string var, void|string scope_name)
+
//! Call this when the variable @[var] in the specified scope has
+
//! changed in some other way than by calling a function in this
+
//! class. If necessary, this will register the variable and its
+
//! current value in generated p-code (see @[set_misc] for further
+
//! details). The current scope is used if @[scope_name] is left
+
//! out.
+
{
+
if (mapping var_chg = misc->variable_changes) {
+
if (!scope_name) scope_name = "_";
+
var_chg[encode_value_canonic (({scope_name, var}))] = scopes[scope_name][var];
+
}
+
}
+
void add_runtime_tag (Tag tag) //! Adds a tag that will exist from this point forward in the //! current context only.