I've updated the lessons 1-5 to use the Tango runtime. Only the to and from char* functions needed to be changed.
So from now on I'll publish code only compatible with Tango.
Monday, February 19, 2007
Update: Lessons 1-5 use Tango now
Labels:
D Programming,
Tango
Subscribe to:
Post Comments (Atom)
10 comments:
Would it be possible to do it with a version(Tango) else //version(Phobos) ?
Of course it would be possible, but I'm not interested in supporting two versions of the code, even if the differences are small. I've chosen Tango as my favorite, and I won't consider changing until Phobos improves and gets the c++:ness out of it.
I am not that deep within Phobos. But what is the c++-ness of Phobos? Can you maybe show me an example?
Many times I get the feeling of writing C/C++ code when using Phobos. I come from more of a Java background than C/C++, so I naturally like Java-type libraries. And I'm mostly talking about function naming and such.
But anyway, the biggest reason here is that I don't have the resources to keep two versions up to date. I know there isn't much of a difference yet, but at some point I will have to use more and more functionality from Tango/Phobos, that will make my life harder.
Plus it shouldn't be too much trouble for someone wanting to use Phobos instead of Tango to convert the lessons. It's good practice too. =)
ah, ok, I thought you were talking more about some sort of c/c++ specific ´idioms´.
I also come from Java and thus I am tending to solve problems in some sort of java-ness. So, for the "JDK" (Tango) of D I would like to see it D like (whatever that exactly is). E.g. Tango logging is Log4J, but I am missing here those ´lazy´ delegates.
ah, ok, I thought you were talking more about some sort of c/c++ specific ´idioms´.
I also come from Java and thus I am tending to solve problems in some sort of java-ness. So, for the "JDK" (Tango) of D I would like to see it D like (whatever that exactly is). E.g. Tango logging is Log4J, but I am missing here those ´lazy´ delegates.
odefu: Did you have any problems with tango and/or derelict? Or are you using Linux? I mean some of the derelict packages still required phobos to compile. Also dsss could not build derelictgl here.
demise:
Not really. First make sure you use -version=Tango when working with Derelict. There might still be some unguarded imports to Phobos in some of the less used Derelict libraries. With those I suggest checking if the module in question uses anything from the imported Phobos module and then either just removing it, fixing it and posting about it to the Derelict forums. I use GL, GLU, SDL, SDLImage, SDLMixer and SDLttf and haven't had any problems anymore. If you have a specific problems I suggest you write to the Derelict forums.
...and I'm on Windows.
thank you nice sharing
cep programsymbian programnokia programhtml kodlarıbedava cep oyunlarıcilt bakımı
Post a Comment