From: Ken A. <kan...@bb...> - 2004-01-05 21:19:40
|
At 03:44 PM 1/5/2004 -0500, Timothy John Hickey wrote: >So, you are messing around with the undocumented implementation of String, so as to make strings mutable! >This is clever, but violates all sorts of information hiding rules and fundamental precepts about object-oriented programming. Yes, and add threads and hashtables and you have a booby trap construction set! >Very cool! > >Sounds good! > >Lets use it! > > >> >>I've put this in jsint/primproc.scm because it is part of r4rs, but maybe it should >>get located with slib/ i can't decide. >> >>k > >But maybe put it in the slib code since we only really need strings to be mutable inside slib and there may be >unforseen consequences (e.g. it might not work on all JDKs now and in the future...) > >Eventually, we might need to make it uglier by having it check which Java version it is using before mucking around with >the internal undocumented representation.... > >---Tim--- > > > >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IBM Linux Tutorials. >>Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >>Free Linux Tutorials. Learn everything from the bash shell to sys admin. >>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >>_______________________________________________ >>Jscheme-user mailing list >>Jsc...@li... >>https://lists.sourceforge.net/lists/listinfo/jscheme-user > > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_______________________________________________ >Jscheme-user mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-user |