Re: help with RegExp not matching [D1]

2009-11-22 Thread jicman
g Wrote: > jicman Wrote: > > > jicman Wrote: > > > > > jicman Wrote: > > > > > > > Greetings and salutations. > > > > > > > > I am having trouble with this regular expression. I tried a few things > > > > and nothing. Any help will be greatly appreciated. Here is the > > > > program... >

Re: help with RegExp not matching [D1]

2009-11-22 Thread g
jicman Wrote: > jicman Wrote: > > > jicman Wrote: > > > > > Greetings and salutations. > > > > > > I am having trouble with this regular expression. I tried a few things > > > and nothing. Any help will be greatly appreciated. Here is the > > > program... > > > > > > import std.stdio; > >

Re: help with RegExp not matching [D1]

2009-11-22 Thread jicman
jicman Wrote: > jicman Wrote: > > > Greetings and salutations. > > > > I am having trouble with this regular expression. I tried a few things and > > nothing. Any help will be greatly appreciated. Here is the program... > > > > import std.stdio; > > import std.regexp; > > > > > > void mai

Re: help with RegExp not matching [D1]

2009-11-22 Thread jicman
jicman Wrote: > Greetings and salutations. > > I am having trouble with this regular expression. I tried a few things and > nothing. Any help will be greatly appreciated. Here is the program... > > import std.stdio; > import std.regexp; > > > void main() > { > char[] l, s, s0, str0; > >

help with RegExp not matching [D1]

2009-11-22 Thread jicman
Greetings and salutations. I am having trouble with this regular expression. I tried a few things and nothing. Any help will be greatly appreciated. Here is the program... import std.stdio; import std.regexp; void main() { char[] l, s, s0, str0; s = ";p=SomeCompany;l=USA0300MS01-091110

Re: template type check syntax

2009-11-22 Thread Gzp
I'd say that the main difference is that the last one doesn't compile. :) It's simply not valid D code. Thanks. I've missed the two extra characters ({}) on the post I've seen before :).

Re: template type check syntax

2009-11-22 Thread Lars T. Kyllingstad
Gzp wrote: void foo(T)(ref T t) if (isPrime!(T)) { ... } void foo(T)(ref T t) if (!isPrime!(T)) { ... } What is the difference b/n void foo(T)(ref T t) if (isPrime!(T)) { ... } and void foo(T)(ref T t) static if (isPrime!(T)) { ... } as both of them seems to be a compile time check for me.