Re: winpcap binding

2011-08-06 Thread maarten van damme
on a side note, where does the bcd http://www.dsource.org/projects/bcd project stands? 2011/8/7 maarten van damme > > Sad news, I kinda gave up on it. at certain places I don't know enough c > and for my first c to d conversion I think that library is way out of my > leage. another problem was t

Re: winpcap binding

2011-08-06 Thread maarten van damme
Sad news, I kinda gave up on it. at certain places I don't know enough c and for my first c to d conversion I think that library is way out of my leage. another problem was that I couldn't even compile to c header files with dmc due to errors, let allone convert it correctly :p I'll better start w

Re: More than one invariant per struct/class

2011-08-06 Thread Jonathan M Davis
On Saturday 06 August 2011 22:40:15 simendsjo wrote: > On 04.08.2011 11:32, simendsjo wrote: > > I would like to use a template mixin to add some fields to a struct, but > > I'd also like the template to add additional invariant checks without > > having to remember to add this for all struct/class

Re: winpcap binding

2011-08-06 Thread simendsjo
On 05.08.2011 06:35, maarten van damme wrote: hehe, thank you, that was what I was looking for. I've created an import lib from the dll and now started to translate the header files following those guidelines. I'm assuming thats how I have to do it? :) Starting with htod might give you a head s

Re: More than one invariant per struct/class

2011-08-06 Thread simendsjo
On 04.08.2011 11:32, simendsjo wrote: I would like to use a template mixin to add some fields to a struct, but I'd also like the template to add additional invariant checks without having to remember to add this for all struct/classes that mixes in this code. class C { int a; } mixin template E

Re: porting c++ code to dpl

2011-08-06 Thread Simon
On 06/08/2011 19:07, bearophile wrote: Simon: Unless you need pointer to members/pointer to member functions, just about every bit of c++ is easier and more straight forward in D. I have had some problems when the original C++ code uses struct inheritance ("alias this" helps a bit) or multip

Re: porting c++ code to dpl

2011-08-06 Thread bearophile
Simon: > Unless you need pointer to members/pointer to member functions, just > about every bit of c++ is easier and more straight forward in D. I have had some problems when the original C++ code uses struct inheritance ("alias this" helps a bit) or multiple inheritance. Bye, bearophile

Re: porting c++ code to dpl

2011-08-06 Thread Simon
On 06/08/2011 17:59, Mirko Pilger wrote: hello everybody, i'm new to this language and plan to start learning it by porting parts of an existing c++ library to dpl. i would very much appreciate it if you have some tips & tricks, hints of pitfalls or any other experiences to share. mirko Well

porting c++ code to dpl

2011-08-06 Thread Mirko Pilger
hello everybody, i'm new to this language and plan to start learning it by porting parts of an existing c++ library to dpl. i would very much appreciate it if you have some tips & tricks, hints of pitfalls or any other experiences to share. mirko

Re: File append Limit

2011-08-06 Thread Kagamin
Joshua Niehus Wrote: > That works, but I misrepresented the problem and found that the following > may be the issue (this looks more like the code im using): > > import std.conv, std.stdio; > > void main() > { > string[] strArr; > foreach(int i; 0 .. 257) { > strArr ~= text("Line