Archive for February, 2008
Sunday, February 10th, 2008
If you’re tired of your current desktop wallpaper and want to show your love of D, check out what dominik has made freely available. I’m tempted to put one on my desktop, but I’m just not quite ready to say goodbye to Keira Knightley.
Technorati Tags: D Programming Language, wallpaper
Posted in News, Tango | No Comments »
Friday, February 8th, 2008
In the process of writing Learn to Tango With D
all four authors went through each chapter to look for errors and misinformation, in addition to the work done by the editors and technical reviewers. Still, we managed to overlook a few errors.
For a list of the mistakes found to date, check out the book’s errata page over at the Tango wiki. I’m hoping it doesn’t get too long!
Technorati Tags: D Programming Language, Tango, programming books
Posted in Learn to Tango With D, Tango | No Comments »
Monday, February 4th, 2008
Ary has announced a new version of the Descent, the Eclipse plugin for D. From the NG post:
- Full autocompletion, which also writes the imports for you. No need to remember where that class or function you are looking for is located. Just start writing the name of it, press ctrl+space, select the suggestion, and the import is added at the top of the module automatically (no need to critic Tango anymore :-P). External variables does not participate in import-adding, because there are *so* many public ones…
- Go to definition. It even works for opCall and magic array functions.
- Semantic highlighting: you can choose to color aliases, typdefs, classes, structs, interfaces, unions, templates, local variables, functions and function calls, etc., with different colors.
- Showing of semantic errors. By default, some semantic errors are shown, like undefined identifiers or unresolved types. You can turn this off, or you can enable full semantic error reporting (but it will probably lie in some cases, that’s why the default is “some”). It is recommended to turn this off for existing big projects, as it may cause more trouble than help.
- Compile-time evaluation of functions and other properties: hovering over an element while holding ctrl+shift shows it’s compile-time value. You can use this for built-in properties like init, min, max, sizeof, alignof, stringof, mangleof, length, constants, enum values and function calls (try writing a factorial function, then invoke it with a constant value somewhere in the code, and ctrl+shift+hover over the call). If the result of the evaluation is a string, and it is likely a declaration, it will have syntax highlighting and will be formatted according to your formatter preferences. This is useful for seeing the string passed to a mixin.
- Graying out of inactive code: shows in gray code that is not reachable because of debug or version levels/identifiers and static ifs that evaluate to false.
- Improved occurrences finder: selecting a token highlights all other tokens with the same semantic meaning. Then, pressing ctrl+2, r, allows you to rename all those occurrences. Very useful for renaming local variables, functions and types.
- Declaration view: shows the source of the element under the cursor.
For current users: after you update the plugin, go to Windows -> Preferences, D -> Compiler, and change any setting. It will ask you to rebuild everything. You’ll need to do this since I’ve changed the format of the indexes for searching stuff. Otherwise you’ll get errors, or some things won’t work.
I still haven’t used this yet, but it’s sounding really nice. Do let me know in the comments what your opinions of it are if you use it.
Technorati Tags: D Programming Language, Eclipse
Posted in IDE, News | 6 Comments »
Saturday, February 2nd, 2008
I thought I was imagining the Mork & Mindy reference when I saw the name of the project, but after reading the project page I found that I wasn’t. Nanu is an attempt to bring Mono to D so that code written in C# can easily be ported to our favorite Digital Martian language.
Technorati Tags: D Programming Language, Mono, C#
Posted in News | No Comments »
Friday, February 1st, 2008
Nicolay Korslund has released a new version of the D-based game scripting language Monster. You can read more about the future plans for the project over in the DSource forums.
Technorati Tags: D Programming Language, game development, game programming, scripting languages
Posted in Gamedev/Games, News | No Comments »