[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext patches for cygwin #4: accessing fields of exported structs/
From: |
Ralf Wildenhues |
Subject: |
Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays |
Date: |
Thu, 24 Nov 2005 09:25:01 +0100 |
User-agent: |
Mutt/1.5.11 |
* Charles Wilson wrote on Wed, Nov 23, 2005 at 11:54:54AM CET:
>
> But this assumes that you would do so: IMO indirect access functions are
> not an eyesore; in fact, exposing variables from a shared library is a
> flaw from a data-encapsulation POV.
Amen! <insert your preferred (non)religious way to utter agreement>
It's a pain for software porting (be it to w32 or AIX or *gasp* VMS),
it's a pain for data structuring (oh, an rbtree would've been better),
it's a pain for extensibility (adding an element to the arrayed struct),
it's a pain for thread-safety (that would've been nice with __thread),
and it's almost never excusable by performance arguments (provide a set
of interfaces instead which loops over a number of arguments if your
function is too fast). Whenever you have the chance, kill a data object
interface.
Cheers,
Ralf, from the lessons painfully learned with libtool department
- gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/20
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/21
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/22
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/22
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/23
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays,
Ralf Wildenhues <=
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/24
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/24
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/27
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/23
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/24