Hi,<br><br>here is a piece of code that warns when a reserved keyword is used as a variable name. This is nice time saver for me, since IE refuses to run such code. Perhaps it could be included in a nicer way. <br><br>Bye<br>
<br>Viktor<br><br><br>(defmethod initialize-instance :after ((var js-variable) &rest initargs)<br> (declare (ignore initargs))<br> (when (find (slot-value var 'value) '(abstract else instanceof switch boolean enum int synchronized break export interface this byte extends long throw case native throws catch final new transient char finally float package try const for private typeof continue function protected var debugger goto public void default if return volatile delete implements short while do import static with double in super class) :test #'string-equal)
<br> (warn "~a is a reserved word and should not be used as a variable" (slot-value var 'value))))<br><br>