Re: [linux-audio-dev] The global API namespace

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] The global API namespace
From: Paul Davis (paul_AT_linuxaudiosystems.com)
Date: Sat Dec 07 2002 - 19:21:52 EET


>> How about this for Audiality:
>>
>> Functions: a_whatever()
>> Types: at_whatever
>
>I think a_ is too breif. aud_foo(), maybe. And types of AUD_foo_type;
>Its the easiest. Because nothing sucks worse than accidentally namig a
>variable or function the same as a type and trying to figure it out. Ugh

see? c++ is good for something, eh?

namespace Audiality {
          typedef some_native_type whatever;
          void do_something();
};

when we started amazon.com, we used g++ even though we were basically
writing straight c code. the main reason was to get better type safety and
a few other features. i can imagine that there are cases where
namespaces could be considered so valuable as to make it worthwhile
compiling otherwise straight c with a c++ compiler.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Dec 07 2002 - 19:19:54 EET