add $ prefix to attribute variables v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 22 Jan 2019 15:07:21 +0100
branchv_0
changeset 3 d4d0e50f54da
parent 2 7fb4d2c70e8c
child 4 9b4fe4bc5f0f
add $ prefix to attribute variables
src/GuileHandler.h
--- a/src/GuileHandler.h	Sun Jan 20 01:23:34 2019 +0100
+++ b/src/GuileHandler.h	Tue Jan 22 15:07:21 2019 +0100
@@ -62,7 +62,7 @@
 	string_t guileCode;
 
 	SCM toGuileSymbol(const string_t& name) {
-		return scm_string_to_symbol(scm_from_locale_string(convertor.to_bytes(name).c_str()));
+		return scm_string_to_symbol(scm_from_locale_string(convertor.to_bytes(L"$" + name).c_str()));
 	}
 
 	SCM toGuileString(const string_t& value) {
@@ -96,6 +96,7 @@
 
 	void undefineGuileVariable(const string_t& name, TypeId type, const string_t& value) {
 		scm_define(toGuileSymbol(name), scm_make_undefined_variable()); // undefined != (define n)
+		// TODO: or use: scm_variable_unset_x() ?
 	}
 
 public: