[linux-audio-dev] The global API namespace

Paul Davis paul at linuxaudiosystems.com
Sat Dec 7 12:21:00 UTC 2002


>> 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




More information about the Linux-audio-dev mailing list