Translate C++ to D

Luca Lupo luca.lupo at hotmail.it
Tue Jan 8 11:26:02 PST 2008


Someone known convert this c++ code to D?

TANKS SO MUCH

#include<list>
using namespace std;

#include"Observer.h"
#include"Post.h"

class Subject{
      private:
      public:
             list<Observer*> _observer;
             virtual ~Subject();
             virtual void Attach(Observer *);
             virtual void Detach(Observer *);
             virtual void Notify();  
   protected:
             Subject(); 
      };

class Blog : public Subject{
      private:
              string Blog_name;
              list<Post> l_post;
      public:
             Blog(string );
             void Notify(); 
             void NewPost(Post);
             string GetName();
             void print();
      };



More information about the Digitalmars-d mailing list