Native code implementation.

Dave Dave_member at pathlink.com
Thu Jan 4 14:26:43 PST 2007


Viktor L wrote:
> I'm currently playing around with sound in D, using the native Linux
> functionality (eg. using ioctls, write and read and so forth) to do so.
> 
> I'm wondering if I'm doing it properly, design wise. I've been doing it sort
> of like I would if i were to write a C program that uses lots of assembly,
> confining it to wrapper functions (well, wrapper classes in this case) so that
> the rest of the code is as clean from native functions as possible (this way I
> imagine porting to other systems is easier).
> 
> Is this the best way of doing this, or should I consider other ideas?
> 
> Thanks.

I think that's a good strategy, unless you're "re-inventing the wheel" for something already 
available through the D std. library (which _should_ be portable already for the most part)?


More information about the Digitalmars-d-learn mailing list