return (daddy_context_) ? daddy_context_->where_defined (sym, value) : 0;
}
+/* Quick variant of where_defined. Checks only the context itself. */
+
+bool
+Context::here_defined (SCM sym, SCM *value) const
+{
+#ifndef NDEBUG
+ if (profile_property_accesses)
+ note_property_access (&context_property_lookup_table, sym);
+#endif
+
+ return properties_dict ()->try_retrieve (sym, value);
+}
+
/*
return SCM_EOL when not found.
*/
SCM internal_get_property (SCM name_sym) const;
SCM properties_as_alist () const;
Context *where_defined (SCM name_sym, SCM *value) const;
+ bool here_defined (SCM name_sym, SCM *value) const;
void unset_property (SCM var_sym);
void instrumented_set_property (SCM, SCM, const char *, int, const char *);