From 72abc90e4ab69b6f5f4e918201d8371bf390ee3a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 10 Dec 2007 10:29:38 +0100 Subject: r26373: add note about shared libs being problematic with static data. (This used to be commit 7b186ee310dab70e9ef8e4ef06e6afbf5233cc99) --- prog_guide.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'prog_guide.txt') diff --git a/prog_guide.txt b/prog_guide.txt index f5ac600f88..3814a11a4e 100644 --- a/prog_guide.txt +++ b/prog_guide.txt @@ -146,6 +146,7 @@ Static data is evil as it has the following consequences: - it makes code much less likely to be recursion-safe - it leads to subtle side effects when the same code is called from multiple places + - doesn't play well with shared libraries or plugins Static data is particularly evil in library code (such as our internal smb and rpc libraries). If you can get rid of all static data in -- cgit