[geany/newsletter] 5f341e: Add note about static initialization of C++ classes
Lex Trotman
git-noreply at xxxxx
Sun Apr 1 02:58:24 UTC 2012
Branch: refs/heads/master
Author: Lex Trotman <elextr at gmail.com>
Committer: Matthew Brush <matt at geany.org>
Date: Sun, 01 Apr 2012 02:58:24
Commit: 5f341e839079da39a13662b71e26387d20b57fd0
https://github.com/geany/newsletter/commit/5f341e839079da39a13662b71e26387d20b57fd0
Log Message:
-----------
Add note about static initialization of C++ classes
Modified Paths:
--------------
vol_5/newsletter_5.rst
Modified: vol_5/newsletter_5.rst
6 files changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -116,6 +116,12 @@ to C++::
dialogs_show_msgbox(GTK_MESSAGE_INFO, "%s", hello_message);
}
+It's important to note that the dynamic library loading mechanism that loads
+plugins is C functionality and does not know about C++ constructors. This means
+that global and static objects in the plugin will *not* have their constructors
+called when the plugin is loaded. Use dynamically created objects as show in the
+above example.
+
These changes will be available in the next Geany release but you can start using
them right away in your C++ plugins if you Build Geany From Git [3].
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Newsletter-Commits
mailing list