www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Should I bother porting Win32 threading examples?

reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
I'm in the process of porting WinAPI examples from Petzold's Windows
Programming book to D. In the book there's a chapter on
multithreading. It covers thread creation, messaging queues, critical
sections, TLS (heh..), and event signaling.

Since we pretty much have all of this in D already (+ its
multiplatform), I'm thinking it might be a good idea to skip
translating this chapter's samples. I don't want to encourage newbies
to use WinAPI threading functions when it's completely unnecessary to
do so.

I *could* however demonstrate how it's done in D instead, and put some
documentation in the modules on how it works. So while it won't follow
what the book says, at least it's there instead of being completely
left out.

Whaddya think, Windoze users?
Jun 13 2011
parent Kagamin <spam here.lot> writes:
Andrej Mitrovic Wrote:

 I don't want to encourage newbies
 to use WinAPI threading functions
You shouldn't encourage newbies to use any system calls, not just winapi.
Jun 15 2011