Goal: Increased Modularity?
Les Mikesell
lesmikesell at gmail.com
Wed Sep 5 20:06:25 UTC 2007
Bill Nottingham wrote:
> Les Mikesell (lesmikesell at gmail.com) said:
>>> dlopen will cause you to break at runtime instead of buildtime if
>>> ABI changes - that's not good.
>> You should expect things to break when you change an interface - pretty
>> much by definition. If it hurts, don't do it.
>
> I was discussing a case where instead of linking against libvorbis, you
> dlopen() it - that's the sort of thing which is really much better to
> catch at buildtime. If you're dlopening the plugin that is itself linked
> against libvorbis (or whatever), that's better.
Won't anything using a shared library break if you replace that library
with one that does not follow the same interface definition whether it's
dlopen()ed or not? That's kind of the whole concept of interfaces -
they aren't supposed to change. If you write a new one, call it
something else.
--
Les Mikesell
lesmikesell at gmail.com
More information about the fedora-devel-list
mailing list