Re: Where do you get implib

2011-11-04 Thread Jesse Phillips
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

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Tobias Brandt
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

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Timon Gehr
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...) { }

Re: Where do you get implib

2011-11-04 Thread Johannes Pfau
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

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Justin Whear
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

Where do you get implib

2011-11-04 Thread Jesse Phillips
>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

Re: FIFO stack

2011-11-04 Thread Dejan Lekic
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

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Dejan Lekic
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.

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Tobias Pankrath
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

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Christophe
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

Re: Stop TypeTuple as template parameter from expanding

2011-11-04 Thread bearophile
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

Re: std.container & ranges

2011-11-04 Thread Max Wolter
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

Stop TypeTuple as template parameter from expanding

2011-11-04 Thread Tobias Pankrath
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); } -

Re: Formatted date

2011-11-04 Thread Lishaak Bystroushaak
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