Thread overview | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 14, 2004 Template Alias | ||||
---|---|---|---|---|
| ||||
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 Re: Template Alias (forgot something) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | 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 Re: Template Alias (forgot something) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | 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 Re: Template Alias | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | "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 @"Matthias Becker" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | Why do you write using my name? This extension wasn't me. Sorry guys. |
January 15, 2004 Re: @ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthias Becker | 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 Re: @ | ||||
---|---|---|---|---|
| ||||
Posted in reply to imr1984 | "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 Re: @ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | "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 Re: @ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Edwards | "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 Re: @ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | 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
|
Copyright © 1999-2021 by the D Language Foundation