Roland Mainz wrote: >Ian Collins wrote: > > >>>Does anyone know whether it is possible to use C99 features in a shared >>>library which is used by older applications ? >>> >>>For example would it be possible to use C99 features such as |int >>>getrpcbynumber(int arg1, /* ... */) { char buff[arg1]; /* ... */ }| in a >>>library such as libnsl (without breaking backwards-compatibillity) ? >>> >>> >>> >>It shouldn't matter as long as you don't add any C99 features to a >>public interface. >> >> > >Erm... just to get a clarification: I can use C99 features in the >library code itself without running into trouble (the example above uses >|getrpcbynumber()| which is a "public" interface... > > > You are changing the implementation, not the interface. Just make sure your changes link cleanly.
>>You could even use C++, provided no one knows :) >> >> > >That will likely require the C++ runtime (libCrun) ... > > Not if you're careful with what you use. I put together a driver shell in C++ a while back, you just have to avoid anything that requires runtime support. Ian _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org