Hi guys,<div><br></div><div>I have just a small question: how dangerous would it be if I change a system dictionary association (such as #SerialPort) to be a read-write binding?</div><div><br></div><div>I want to be able to provide a different abstraction for SerialPort than the one squeak provides, but I don&#39;t want to change all the code that uses it. So I though a quick and dirty way to do it would be to replace it in the SystemDictionary, like this:</div>

<div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Smalltalk at: #SqueakSerialPort put: SerialPort.<br>(Smalltalk associationOrUndeclaredAt: #SerialPort) beReadWriteBinding.<br>Smalltalk at: #SerialPort put: MySerialPort</blockquote><div><br></div><div>Apart from being an ugly hack, do you think that could be dangerous in some way?</div>

</div><div><br></div><div>Thanks in advance,</div><div>Richo</div>