The attached patch provides the required functionality and detects a string without a fill pointer as a first FORMAT argument. The only thing I don't like in that code is the kind of the error. As for now it is a fatal error, because COMPILER-ERROR does not work in the optimizer body. Maybe I should bind *compiler-error-context* to make it work?
This is my first patch to SBCL, and in case I do something wrong, please let me know and I will try to improve it.
The attached patch provides the required functionality and detects a string without a fill pointer as a first FORMAT argument. The only thing I don't like in that code is the kind of the error. As for now it is a fatal error, because COMPILER-ERROR does not work in the optimizer body. Maybe I should bind *compiler- error-context* to make it work?
This is my first patch to SBCL, and in case I do something wrong, please let me know and I will try to improve it.
Regards,
Roman