Re: Why does "*" cause my tiny regextester program to crash?

2011-01-31 Thread Alex Folland
On 2011-01-31 15:43, Dmitry Olshansky wrote: On 31.01.2011 4:57, Alex Folland wrote: I wrote this little program to test for regular expression matches. I compiled it with in Windows with DMD 2.051 through Visual Studio 2010 with Visual D. It crashes if regexbuf is just the single character, "*"

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-31 Thread Dmitry Olshansky
On 31.01.2011 4:57, Alex Folland wrote: I wrote this little program to test for regular expression matches. I compiled it with in Windows with DMD 2.051 through Visual Studio 2010 with Visual D. It crashes if regexbuf is just the single character, "*". Why? Shouldn't it match the entire str

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-31 Thread Vladimir Panteleev
On Mon, 31 Jan 2011 09:28:25 +0200, Alex Folland wrote: scope(failure){writeln("Bad regex");break;} I think the proper construct here is a try/catch block. -- Best regards, Vladimirmailto:vladi...@thecybershadow.net

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-31 Thread Alex Folland
On 2011-01-31 2:28, Alex Folland wrote: scope(failure){writeln("Bad regex");break;} Oh, that resets the program rather than continuing from where that line was placed. The continue statement is what I wanted.

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-30 Thread Alex Folland
On 2011-01-31 0:50, Alex Folland wrote: On 2011-01-30 21:47, Vladimir Panteleev wrote: On Mon, 31 Jan 2011 03:57:44 +0200, Alex Folland wrote: I wrote this little program to test for regular expression matches. I compiled it with in Windows with DMD 2.051 through Visual Studio 2010 with Visua

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-30 Thread Alex Folland
On 2011-01-30 21:47, Vladimir Panteleev wrote: On Mon, 31 Jan 2011 03:57:44 +0200, Alex Folland wrote: I wrote this little program to test for regular expression matches. I compiled it with in Windows with DMD 2.051 through Visual Studio 2010 with Visual D. It crashes if regexbuf is just the s

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-30 Thread Vladimir Panteleev
On Mon, 31 Jan 2011 03:57:44 +0200, Alex Folland wrote: I wrote this little program to test for regular expression matches. I compiled it with in Windows with DMD 2.051 through Visual Studio 2010 with Visual D. It crashes if regexbuf is just the single character, "*". Why? Shouldn't

Re: Why does "*" cause my tiny regextester program to crash?

2011-01-30 Thread Jesse Phillips
Alex Folland Wrote: > I wrote this little program to test for regular expression matches. I > compiled it with in Windows with DMD 2.051 through Visual Studio 2010 > with Visual D. It crashes if regexbuf is just the single character, > "*". Why? Shouldn't it match the entire string? While

Why does "*" cause my tiny regextester program to crash?

2011-01-30 Thread Alex Folland
I wrote this little program to test for regular expression matches. I compiled it with in Windows with DMD 2.051 through Visual Studio 2010 with Visual D. It crashes if regexbuf is just the single character, "*". Why? Shouldn't it match the entire string? Visual Studio's debug output is th