This is the first in an on-going series of posts relating nuggets of D wisdom gained through daily praxis. I recently came across the situation where I needed to pass a pointer to an object to a callback function in a C library. The function was designed so that you can pass 'additional data' by means of a void*, which could be used to point to any kind of data in memory which would contain the context for the callback. This is a fairly common pattern in C libraries, designed to make the callbacks flexible and extensible to any use case. read more
Blog
D-tails 1: local this
05
Nov
2010
posted by Gavin in Category: Code Talk
First experiences in D
28
Apr
2010
posted by Gavin in Category: Code Talk
This post is written by our new senior developer, Gavin. When I started working at sociomantic labs, I was intrigued by the language of choice here for systems code — a new C derivative called D. I’d never heard of D before, but after reading a book on the language I was keen to try it out. In reading about it, D struck me as an extremely well designed language. Coming from the perspective of a C++ programmer (which has been my primary coding language up to now) it seemed as though Walter Bright (the originator of D) had taken a long, hard look at how C family languages are [...] read more
