freenode/#sbcl - IRC Chatlog
Search
14:40:58
stassats
i can trivially record atom forms for errors and get them displayed by sbcl, but more trouble with trying to use that information in slime
14:41:29
stassats
it records source positions by installing reader macros for #\( and so on, but there's no reader macro for X in (progn x)
15:15:23
stassats
wrapping each form into a structure, which stores the source position, then there'll be no problem locating atoms
16:01:56
pfdietz
You could have a read table in which all characters are macro characters, so there are reader macros even for X.
16:05:03
pfdietz
Can do whatever we want for non-standard characters in the standard read table, so make all those extra characters share a common reader macro?
17:12:16
phoe
if the character is not found in the list of 256 ASCII characters or what not (if char-code is 256 or more), then fire this function
17:15:52
nyef``
That, too. Sometimes, the correct customization is to ignore the customization hook and do something with the underpinnings instead.
17:17:45
stassats
currently, the source forms are tracked using a hash-table, which, obviously, doesn't work for atoms
17:18:29
stassats
i got it to work for reporting which form is producing errors by using the conses the car of which the atom comes from