[Ecls-list] Patch: expand #n# correctly inside of #.

Josh Elsasser josh at elsasser.org
Sat Aug 30 20:54:39 UTC 2008


When expanding the #. reader macro, the result is not cleaned up to
remove internal implementation details resulting from the expansion of
a #n# macro.  This causes a #n# inside of #. to be expanded incorrectly.

--- src/c/read.d
+++ src/c/read.d
@@ -1042,6 +1042,7 @@ sharp_dot_reader(cl_object in, cl_object c, cl_object d)
 		FEend_of_file(in);
 	if (read_suppress)
 		@(return Cnil);
+	c = patch_sharp(c);
 	if (ecl_symbol_value(@'*read-eval*') == Cnil)
 		FEreader_error("Cannot evaluate the form #.~A", in, 1, c);
 	c = si_eval_with_env(1, c);




More information about the ecl-devel mailing list