BOOLField oddity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BOOLField oddity

Bob Jarvis
Blair/Andy - while playing with the SECURITY_ATTRIBUTE class I
discovered that BOOLField's won't accept true or false as values.  It
seems to me that it would be logical that BOOLFields should accept
Booleans as values.  This can be done, and seems to work fine, if you
change the code in BOOLField>>writeInto:value: to read

        ^(anExternal dwordAtOffset: offset put: anObject asDword)
asBoolean

(the send to #asDword is added).

Bob Jarvis