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...
>
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;
> >
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
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;
>
>
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
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 :).
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.