Small kjs value reference patch
Zack Rusin
zack at kde.org
Wed Nov 5 01:10:55 GMT 2003
Ave,
increment reference count on the copying object before dereferencing the
currently held value. It's more for the semantic than technical
correctness as to invoke a bug a collector would have to be invoked at
the same time as the copying value is getting out of scope and the
oprator= with it is called. Possible only in a multithreaded app with a
funky synchronization, but in any way it doesn't uglify the code and
seems more natural for people who are used to exceptions. Problems?
Zack
--
43rd Law of Computing: Anything that can go wr
fortune: Segmentation violation -- Core dumped
-------------- next part --------------
A non-text attachment was scrubbed...
Name: val.diff
Type: text/x-diff
Size: 1003 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20031104/6150a51b/attachment.diff>
More information about the kfm-devel
mailing list