From 1b5038cc9e0dc93f940079ee316ea0ac28b80198 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 1 Mar 2010 21:49:10 +0000 Subject: [PATCH] fix docs on nb_ --- docs/yap.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/yap.tex b/docs/yap.tex index 331c6c478..3c6623561 100644 --- a/docs/yap.tex +++ b/docs/yap.tex @@ -6737,7 +6737,7 @@ namespace and values for global variables. @end itemize Currently global variables are scoped globally. We may consider module -scoping in future versions. Both @code{b_setval/2} and +scoping in future versions. Both @code{b_setval/2} and @code{nb_setval/2} implicitly create a variable if the referenced name does not already refer to a variable. @@ -6776,6 +6776,8 @@ the normal precautions (double negation or @code{copy_term/2}) must be taken. The @code{b_getval/2} predicate generates errors if @var{Name} is not an atom or the requested variable does not exist. +Notice that for compatibility with other systems @var{Name} @emph{must} be already associated with a term: otherwise the system will generate an error. + @item nb_setval(+@var{Name}, +@var{Value}) @findex nb_setval/2 @snindex nb_setval/2