X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fir1report.lisp;h=3a81b986a2451c976db676a25ebe63746761c87f;hb=6e7e59adb6f6c30f84b31695b48cb51e2c519d75;hp=697e7c4f2b45119f09845c8beee98d1f86df00c0;hpb=c713eb2b521b048ff2c927ec52b861787d289f85;p=sbcl.git diff --git a/src/compiler/ir1report.lisp b/src/compiler/ir1report.lisp index 697e7c4..3a81b98 100644 --- a/src/compiler/ir1report.lisp +++ b/src/compiler/ir1report.lisp @@ -220,14 +220,18 @@ ;;; ;;; the problem, part II: The is represented as a pair ;;; of values, SOURCE-NAME and DEBUG-NAME, where SOURCE-NAME is used -;;; if it's not null. +;;; if it's not .ANONYMOUS. (This is parallel to the way that ordinarily +;;; we don't use a value if it's NIL, instead defaulting it. But we +;;; can't safely/comfortably use NIL for that in this context, since +;;; the app programmer can use NIL as a name, so we use the private +;;; symbol .ANONYMOUS. instead.) ;;; ;;; the solution: Use this function to convert whatever it is to a ;;; string, which FORMAT can then splice using "~A". (defun as-debug-name (source-name debug-name) - (if source-name - (debug-namify "~S" source-name) - debug-name)) + (if (eql source-name '.anonymous.) + debug-name + (debug-namify "~S" source-name))) ;;; Return a COMPILER-ERROR-CONTEXT structure describing the current ;;; error context, or NIL if we can't figure anything out. ARGS is a