Johannes Pfau Wrote:
> Jesse Phillips wrote:
> >From what I gather, if you have a DLL to link, you can use implib to
> >build a static library that will do the linking for you. My research
> >suggests that everyone already has it, and may even come with Windows.
> >But I don't seem to have it. Whe
I know of two options, both not ideal:
1)
First of all, you need to declare S as an alias.
A TypeTuple is a template, not a type.
template Test(alias S, T...)
{
pragma(msg, "S: " ~ S.stringof);
pragma(msg, "T: " ~ T.stringof);
}
Then you can pack the type list manually into a
template, li
On 11/04/2011 05:28 PM, Justin Whear wrote:
I just use a templated struct.
struct GroupedTypes(T...)
{
alias T Types;
}
Then, if you need to something special with groups, you can create an
override:
//overriding previous Test template...
template Test(T: GroupedTypes!(S), S...)
{
}
Jesse Phillips wrote:
>From what I gather, if you have a DLL to link, you can use implib to
>build a static library that will do the linking for you. My research
>suggests that everyone already has it, and may even come with Windows.
>But I don't seem to have it. Where do you get it.
>
>I found cof
I just use a templated struct.
struct GroupedTypes(T...)
{
alias T Types;
}
Then, if you need to something special with groups, you can create an
override:
//overriding previous Test template...
template Test(T: GroupedTypes!(S), S...)
{
}
Tobias Pankrath wrote:
> Hi,
>
> this is an
>From what I gather, if you have a DLL to link, you can use implib to build a
>static library that will do the linking for you. My research suggests that
>everyone already has it, and may even come with Windows. But I don't seem to
>have it. Where do you get it.
I found coffimplib to do convers
Dominic Jones wrote:
> Hello,
>
> I was looking for a FIFO stack in std.containers but only found SList
> and Array which both appear to essentially operate as LIFO stacks. Is
> there any standard container with which I can push items on to a list,
> then later pop them off from the bottom of tha
bearophile wrote:
> Tobias Pankrath:
>
>> How would you do this? Do I need an extra template TypeList?
>
> It's the design of typetuples, they are auto-flattening. I have never
> appreciated this design. Maybe Walter likes them this way, or they can't
> be designed in another way, I don't know.
bearophile wrote:
> It's the design of typetuples, they are auto-flattening. I have never
> appreciated this design. Maybe Walter likes them this way, or they can't
> be designed in another way, I don't know.
I do like it, just it would be nice to have an alternative in phobos, iff
there is no o
bearophile , dans le message (digitalmars.D.learn:30429), a écrit :
> Tobias Pankrath:
>
>> How would you do this? Do I need an extra template TypeList?
>
> It's the design of typetuples, they are auto-flattening. I have never
> appreciated this design. Maybe Walter likes them this way, or they
Tobias Pankrath:
> How would you do this? Do I need an extra template TypeList?
It's the design of typetuples, they are auto-flattening. I have never
appreciated this design. Maybe Walter likes them this way, or they can't be
designed in another way, I don't know.
Bye,
bearophile
As long as you don't need to search for the element to remove using its
value, removal in a linked list should be O(1). A linked list that does
not allow O(1) removal and O(1) insertion given a topological reference
is a failure (yes, that includes the current version of SList).
Well, thank god
Hi,
this is an example
-
template Test(S, T...)
{
pragma(msg, "S: " ~ S.stringof);
pragma(msg, "T: " ~ T.stringof);
}
alias TypeTuple!(A, B, C) MyList;
struct A {};
struct B {};
struct C {};
void main()
{
Test!(MyList, A, B, C);
}
-
Oh, ok, thanks for your answer.
2011/11/4 Jonathan M Davis :
> On Thursday, November 03, 2011 16:58 Lishaak Bystroushaak wrote:
>> Hello.
>>
>> Is there any way how to format date with formating strings? Something
>> like strftime in python;
>> http://docs.python.org/library/datetime.html#strftime
14 matches
Mail list logo