Re: Immutable data not copied

2009-12-09 Thread Lutger
Tomek Sowiński wrote: const(FAQ) says: When doing a deep copy of a data structure, the invariant portions need not be copied. I'm trying to imagine what code would benefit from such optimization. immutable struct Large { whole lotta data... } struct Other { Large l; } void

Re: Solution to print Chinese font in console under D2

2009-12-09 Thread Kagamin
Sam Hu Wrote: Kagamin Wrote: Sam Hu Wrote: I asked this question a couple of month ago but it is pending,is there any solution now? Thanks. As you know from previous discussions, there're various solutions, which of them do you want? Sorry,for example? Oops... My

Re: Immutable data not copied

2009-12-09 Thread Tomek Sowiński
Dnia 09-12-2009 o 09:54:33 Lutger lutger.blijdest...@gmail.com napisał(a): Tomek Sowiński wrote: const(FAQ) says: When doing a deep copy of a data structure, the invariant portions need not be copied. I'm trying to imagine what code would benefit from such optimization. immutable struct

Re: Solution to print Chinese font in console under D2

2009-12-09 Thread Sam Hu
Kagamin Wrote: Does sutil work? http://pr.stewartsplace.org.uk/d/sutil/ If not, you can wait for fix for bug 2742 or do it yourself. Thank you very much for your help!Pity I can not access the link ;p