Reading and writing Unicode files

2009-02-27 Thread jicman
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 file and I need to change

Re: finding dmd.conf

2009-02-27 Thread Jesse Phillips
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 > $> dmd main.d > object.d: module object

Re: my first link error: Error 42: Symbol Undefined __moduleUnitTests

2009-02-27 Thread Jarrett Billingsley
On Fri, Feb 27, 2009 at 8:37 PM, Fei wrote: > I'm trying to compile my first d sample, winsamp.d, using dmd 2.025 for > windows. > > dmd winsamp.d gdi32.lib > > everything seem ok but I got a link error : > Error 42: Symbol Undefined __moduleUnitTests > > what lib should I include for moduleUnitT

my first link error: Error 42: Symbol Undefined __moduleUnitTests

2009-02-27 Thread Fei
I'm trying to compile my first d sample, winsamp.d, using dmd 2.025 for windows. dmd winsamp.d gdi32.lib everything seem ok but I got a link error : Error 42: Symbol Undefined __moduleUnitTests what lib should I include for moduleUnitTetst?

Re: Access Vialotation

2009-02-27 Thread Jarrett Billingsley
On Fri, Feb 27, 2009 at 2:31 PM, BCS wrote: > > 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. > Yeah, that seems dubious to me. I don't know what kinds of guarantees, if any, the signal handler has as to what thre

Re: Access Vialotation

2009-02-27 Thread BCS
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. Since Linux (and many o

Re: finding dmd.conf

2009-02-27 Thread Lutger
Moritz Warning wrote: ... > Have you tried to add your dmd/bin to your PATH environment variable? Yes it's there and dmd got properly picked up by the 'which' command.

Re: Access Vialotation

2009-02-27 Thread Jarrett Billingsley
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? > > -- demo --- > module NullPointerExceptionTest; > > class Foo { >  void bar() {} > } > > void main() { >  Foo foo; // foo is still NULL >  tr

Re: finding dmd.conf

2009-02-27 Thread Moritz Warning
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 > $> dmd main.d > object.d: module object

finding dmd.conf

2009-02-27 Thread Lutger
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 $> dmd main.d object.d: module object cannot read file 'object.d' $> /home/lutger/code/bin/dmd/bin/dmd

Re: Access Vialotation

2009-02-27 Thread Qian Xu
UPDATE: I am using gdc compiler in Linux

Access Vialotation

2009-02-27 Thread Qian Xu
Hi All, Is there any way to keep program alive, when an AV takes place? -- demo --- module NullPointerExceptionTest; class Foo { void bar() {} } void main() { Foo foo; // foo is still NULL try { foo.bar(); // A NullPointerException will be thrown } catc

Re: chaining

2009-02-27 Thread Brian
On Thu, 26 Feb 2009 09:45:28 +0100, grauzone wrote: > Brian wrote: >> I want to use a chaining system for easy setting of object attributes, >> which would work great for a single object, unfortunately derived >> classes cannot inherit the chained functions implicitly, whats the best >> way around