std.slist? (Re: Translate C++ to D)

Bill Baxter dnewsgroup at billbaxter.com
Tue Jan 8 12:31:54 PST 2008


Jason House wrote:
> Luca Lupo Wrote:
> 
>> Someone known convert this c++ code to D?
>>
>> TANKS SO MUCH
> 
> Below is my cut at it.  Note that I made a few assumptions that may or may not be correct for you.  I used a singly linked list from the phobos library instead of std.list.  Also, I don't know what Observer and Post are.  I don't know what the right way to use them are.  For example, if Observer is a class, there's no need to use Observer*.  Also, I don't know if Post is getting copied when passed into the newPost function.  Depending on what's going on there, that function signature may need to change

std.slist is in D2 only (but you can the D1 port from std2).

More importantly, though, the last news about it was that Andrei said it 
wasn't ready and told Brad to pull it from the release.  I haven't heard 
that that has changed, and there was no mention of slist in the last D 
change log, so I was thinking it was still not officially released.

Anyone know for sure?

--bb



More information about the Digitalmars-d mailing list