Re: Reading and writing Unicode files

2009-02-28 Thread Daniel Keep
jicman wrote: > Ok, the only reason that I say Unicode is that when I open the file in > Notepad and I do a SaveAs, the Encoding says Unicode. So, when i read this > file and I write it back to the another file, the Encoding turns to UTF8. I > want to keep it as Unicode. There is no such th

Re: Reading and writing Unicode files

2009-02-28 Thread Daniel Keep
jicman wrote: > downs Wrote: > >> downs wrote: >>> jicman wrote: Greetings. Sorry guys, please be patient with me. I am having a hard time understanding this Unicode, ANSI, UTF* ideas. I know how to get an UTF8 File and turn it into ANSI. and I know how to take a ANS

Re: Reading and writing Unicode files

2009-02-28 Thread jicman
downs Wrote: > downs wrote: > > jicman wrote: > >> Greetings. > >> > >> Sorry guys, please be patient with me. I am having a hard time > >> understanding this Unicode, ANSI, UTF* ideas. I know how to get an UTF8 > >> File and turn it into ANSI. and I know how to take a ANSI file and turn it >

Re: Reading and writing Unicode files

2009-02-28 Thread jicman
Jarrett Billingsley Wrote: > On Sat, Feb 28, 2009 at 1:40 AM, jicman wrote: > > > > Greetings. > > > > Sorry guys, please be patient with me.  I am having a hard time > > understanding this Unicode, ANSI, UTF* ideas.  I know how to get an UTF8 > > File and turn it into ANSI. and I know how to ta

Re: Template in interface ?

2009-02-28 Thread Christopher Wright
TSalm wrote: Does something have an idea on how to do something like this ? You don't. Templates cannot participate in polymorphism. I've dealt with this in the past and ended up making another class with a template parameter that corresponds to the desired function template parameter... Ba

Template in interface ?

2009-02-28 Thread TSalm
Hello, I need to do something like this : /* CODE */ import tango.io.Stdout; interface I { bool cmpType(U)(U val); } class A(T):I { bool cmpType(U)(U val) { static if ( is (U==T) ) return true; else return false; } } void main() { I a = new A!(int);

Re: Access Vialotation

2009-02-28 Thread BCS
Hello downs, BCS: you can have a posix signal handler throw an exception (I have done it and had it work) but I have no idea if it is supported. In my experience, that works exactly once. That would match with what I needed: poor man's stack tracing int EveryFunction() { scope(failure) w

Re: Reading and writing Unicode files

2009-02-28 Thread Jarrett Billingsley
On Sat, Feb 28, 2009 at 1:40 AM, jicman wrote: > > Greetings. > > Sorry guys, please be patient with me.  I am having a hard time understanding > this Unicode, ANSI, UTF* ideas.  I know how to get an UTF8 File and turn it > into ANSI. and I know how to take a ANSI file and turn it into an UTF fi

Re: Access Vialotation

2009-02-28 Thread Christopher Wright
downs wrote: BCS wrote: Reply to Jarrett, On Fri, Feb 27, 2009 at 9:01 AM, Qian Xu wrote: Hi All, Is there any way to keep program alive, when an AV takes place? It's possible on Windows in D, but that's because Windows reports segfaults with the same mechanism that D uses for exceptions

solved

2009-02-28 Thread Lutger
Can't believe it's happening again, I found the problem after posting. Due to a kernel update mess I found out my Suse mounted some partitions in fstab as 'user' by default, which means noexec apparently . In the funky way I separated my drives and partitions this caused some commands to be une

Re: Reading and writing Unicode files

2009-02-28 Thread downs
downs wrote: > jicman wrote: >> Greetings. >> >> Sorry guys, please be patient with me. I am having a hard time >> understanding this Unicode, ANSI, UTF* ideas. I know how to get an UTF8 >> File and turn it into ANSI. and I know how to take a ANSI file and turn it >> into an UTF file. But, no

Re: Access Vialotation

2009-02-28 Thread downs
BCS wrote: > Reply to Jarrett, > >> On Fri, Feb 27, 2009 at 9:01 AM, Qian Xu >> wrote: >> >>> Hi All, >>> >>> Is there any way to keep program alive, when an AV takes place? >>> >> It's possible on Windows in D, but that's because Windows reports >> segfaults with the same mechanism that D uses f

Re: Reading and writing Unicode files

2009-02-28 Thread downs
jicman wrote: > Greetings. > > Sorry guys, please be patient with me. I am having a hard time understanding > this Unicode, ANSI, UTF* ideas. I know how to get an UTF8 File and turn it > into ANSI. and I know how to take a ANSI file and turn it into an UTF file. > But, now I have a Unicode f

Re: finding dmd.conf

2009-02-28 Thread Lutger
Jesse Phillips wrote: > On Fri, 27 Feb 2009 15:54:46 +0100, Lutger wrote: > >> I'm having some trouble with dmd.conf. I set up a (soft) symbolic link >> to the dmd/bin path version I want to use, but dmd can't find >> dmd.conf: >> >> $> which dmd >> /home/lutger/code/bin/dmd/bin/dmd >> $> dm