Jump to page: 1 2
Thread overview
Template Alias
Jan 14, 2004
Matthias Becker
Re: Template Alias (forgot something)
Jan 14, 2004
Matthias Becker
Jan 14, 2004
J Anderson
@"Matthias Becker"
Jan 15, 2004
Matthias Becker
Re: @
Jan 15, 2004
imr1984
Jan 15, 2004
Matthew
Jan 15, 2004
Andrew Edwards
Jan 15, 2004
Matthew
Jan 15, 2004
Lewis
Jan 15, 2004
Brad Anderson
Jan 14, 2004
Walter
January 14, 2004
Seems like I'm stupid. I read the manual, but I didn't get it.

Here a short sensles C++ code using template-templates. Could you pleas transform it to D, so I get it?

tempalte <typename T>
class Wahtever {
T foo;
}


template <template <typename T> class U>
class Bar {
// ...
U<int> baz;
};

Bar<Whatever>


January 14, 2004
Extesion:

tempalte <typename T>
class Wahtever {
T foo;
}


template <template <typename T> class U>
class Bar {
U<int> baz;
T quer;
};

Bar<Whatever>




January 14, 2004
Matthias Becker wrote:

>Extesion:
>
>tempalte <typename T>
>class Wahtever {
>T foo;
>}
>
>
>template <template <typename T> class U>
>class Bar {
>U<int> baz;
>T quer;
>};
>
>Bar<Whatever>
>
>
>
>
>  
>

template Whatever(T) //namespace
{
  class Whatever
  {
       T foo;
  }
}

template Bar(alias UT, T) //namespace
{
  alias UT!(T) U;
  class Bar
  {
      U baz;
      T quer;
  }
}

alias Bar!(Whatever, int) BarAlias;

int main ( char [] [] args )
{
  BarAlias.Bar obj = new BarAlias.Bar;
  obj.baz.foo = 10; //Set foo
  return 1;
}

That probably could be cleaned up a bit.

January 14, 2004
"Matthias Becker" <Matthias_member@pathlink.com> wrote in message news:bu3vi9$1lvm$1@digitaldaemon.com...
> Seems like I'm stupid. I read the manual, but I didn't get it.
>
> Here a short sensles C++ code using template-templates. Could you pleas transform it to D, so I get it?
>
> tempalte <typename T>
> class Wahtever {
> T foo;
> }
>
>
> template <template <typename T> class U>
> class Bar {
> // ...
> U<int> baz;
> };
>
> Bar<Whatever>

class Whatever(T)
{
    T foo;
}

class Bar(alias U)
{
    U!(int) baz;
}

Bar!(Whatever)


January 15, 2004
Why do you write using my name? This extension wasn't me. Sorry guys.


January 15, 2004
In article <bu5hjp$156u$1@digitaldaemon.com>, Matthias Becker says...
>
>Why do you write using my name? This extension wasn't me. Sorry guys.
>
>

I think its time to leave this crappy forum that takes 5 minutes to update itself, and move to a proper one with registering.


January 15, 2004
"imr1984" <imr1984_member@pathlink.com> wrote in message news:bu5md0$1dil$1@digitaldaemon.com...
> In article <bu5hjp$156u$1@digitaldaemon.com>, Matthias Becker says...
> >
> >Why do you write using my name? This extension wasn't me. Sorry guys.
> >
> >
>
> I think its time to leave this crappy forum that takes 5 minutes to update itself, and move to a proper one with registering.

You're living in a dream world, lad. It takes about 2 seconds to update, and that's from Australia.



January 15, 2004
"Matthew" <matthew.hat@stlsoft.dot.org> wrote in message news:bu5n22$1emf$1@digitaldaemon.com...
>
> "imr1984" <imr1984_member@pathlink.com> wrote in message news:bu5md0$1dil$1@digitaldaemon.com...
> > In article <bu5hjp$156u$1@digitaldaemon.com>, Matthias Becker says...
> > >
> > >Why do you write using my name? This extension wasn't me. Sorry guys.
> > >
> > >
> >
> > I think its time to leave this crappy forum that takes 5 minutes to
update
> > itself, and move to a proper one with registering.
>
> You're living in a dream world, lad. It takes about 2 seconds to update,
and
> that's from Australia.
>
>
>

He's talking about the web interface. It takes roughly 5 minutes to update and that's just a few miles down the road.


January 15, 2004
"Andrew Edwards" <edwardsac@spamfreeusa.com> wrote in message news:bu5r21$1kmc$1@digitaldaemon.com...
> "Matthew" <matthew.hat@stlsoft.dot.org> wrote in message news:bu5n22$1emf$1@digitaldaemon.com...
> >
> > "imr1984" <imr1984_member@pathlink.com> wrote in message news:bu5md0$1dil$1@digitaldaemon.com...
> > > In article <bu5hjp$156u$1@digitaldaemon.com>, Matthias Becker says...
> > > >
> > > >Why do you write using my name? This extension wasn't me. Sorry guys.
> > > >
> > > >
> > >
> > > I think its time to leave this crappy forum that takes 5 minutes to
> update
> > > itself, and move to a proper one with registering.
> >
> > You're living in a dream world, lad. It takes about 2 seconds to update,
> and
> > that's from Australia.
> >
> >
> >
>
> He's talking about the web interface. It takes roughly 5 minutes to update and that's just a few miles down the road.

Ah! That explains the issue, if not the presentation ...

Since dm provides its own news server, why not use that direct? Please explain ...



January 15, 2004
Matthew wrote:

> "Andrew Edwards" <edwardsac@spamfreeusa.com> wrote in message
> news:bu5r21$1kmc$1@digitaldaemon.com...
> 
>>"Matthew" <matthew.hat@stlsoft.dot.org> wrote in message
>>news:bu5n22$1emf$1@digitaldaemon.com...
>>
>>>"imr1984" <imr1984_member@pathlink.com> wrote in message
>>>news:bu5md0$1dil$1@digitaldaemon.com...
>>>
>>>>In article <bu5hjp$156u$1@digitaldaemon.com>, Matthias Becker says...
>>>>
>>>>>Why do you write using my name? This extension wasn't me. Sorry guys.
>>>>>
>>>>>
>>>>
>>>>I think its time to leave this crappy forum that takes 5 minutes to
>>
>>update
>>
>>>>itself, and move to a proper one with registering.
>>>
>>>You're living in a dream world, lad. It takes about 2 seconds to update,
>>
>>and
>>
>>>that's from Australia.
>>>
>>>
>>>
>>
>>He's talking about the web interface. It takes roughly 5 minutes to update
>>and that's just a few miles down the road.
> 
> 
> Ah! That explains the issue, if not the presentation ...
> 
> Since dm provides its own news server, why not use that direct? Please
> explain ...
> 
> 
> 

I used the web interface for a while, it is less than desirable... I have since started using the free mozilla newsreader (that everyone should have installed anyway, i love mozilla!) i can honestly say that it has never errored or glitched, and works perfectly. On good caveat is you can also delete messages you make by mistake from it, and you can instantly update all messages from it also, i highly recommend using it...
regards
Lewis
« First   ‹ Prev
1 2