<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Stubblog - Comments</title>
    <link>http://stubbles.org/</link>
    <description>Stubblog - Less slogan, more code.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Wed, 19 Jun 2013 23:47:05 GMT</pubDate>

    <image>
        <url>http://stubbles.org/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Stubblog - Comments - Stubblog - Less slogan, more code.</title>
        <link>http://stubbles.org/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Steve: Return type hints</title>
    <link>http://stubbles.org/archives/27-Return-type-hints.html#c559</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/27-Return-type-hints.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=27</wfw:comment>

    

    <author>nospam@example.com (Steve)</author>
    <content:encoded>
    Its funny that your example uses std::string beuscae it has the solution you&#039;re looking for.What you&#039;re trying to do is initialize a class member before initializing the base class, and you found that you can&#039;t. The typical way to get around this is to abandon hope of extending Foo and implement the wrapper in terms of Foo. (has-a vs. is-a) This solution has the annoyance of you needing to redeclare each and every method you want to use and then forwarding those calls to Foo, and you won&#039;t be able to use a FooWrapper in place of a Foo as well, meaning you may need to change a ton of references in your code. However, all you have to do is have FooWrapper expose its underlying Foo and you&#039;re good. (kinda like what string::c_str() does)Check out your copy of  Effective C++.  From the TOC I think item 40 discusses this. 
    </content:encoded>

    <pubDate>Sat, 07 Jul 2012 23:16:16 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/27-guid.html#c559</guid>
    
</item>
<item>
    <title>Iwona: How to get a Singleton right</title>
    <link>http://stubbles.org/archives/56-How-to-get-a-Singleton-right.html#c550</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/56-How-to-get-a-Singleton-right.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=56</wfw:comment>

    

    <author>nospam@example.com (Iwona)</author>
    <content:encoded>
    While it&#039;s interesting to see all the dfirefent hoops one can jump through to accomplish this, I&#039;m confused as to why would you want to make this particular bit of code more generic. Part of my difficulty arises from your initial statement:  I often need to access the current class, for example for logging purposes. When you&#039;re doing this in a static context, you don&#039;t want  the current class  in the sense of  the class in which this code is currently running ; instead, you want  the class this code was written in  (you called it Foo, above). getClass(), as in your original bit of code, is going to give you the Class object corresponding to the object that&#039;s actually instantiated at runtime, not necessarily the Class object corresponding to Foo. If you want a logger for Foo, specifically (as opposed to child classes of Foo, etc.), you can&#039;t use getClass() even in a non-static context (unless Foo is final).In a static context, you always know which Class object you want at the time you&#039;re writing the code. The  .class  construct exists in Java precisely to allow you to statically obtain a reference to a Class object  using it not only avoids instantiating unnecessary objects (and creating unnecessary classes), but also seems, to me at least, to be much more readable and understandable (in terms of determining programmer intent) than the other options presented. It is almost certainly also faster, but that&#039;s probably negligible. 
    </content:encoded>

    <pubDate>Wed, 30 May 2012 08:42:18 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/56-guid.html#c550</guid>
    
</item>
<item>
    <title>Frank: vfsStream 0.10.0 released</title>
    <link>http://stubbles.org/archives/97-vfsStream-0.10.0-released.html#c497</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/97-vfsStream-0.10.0-released.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=97</wfw:comment>

    

    <author>nospam@example.com (Frank)</author>
    <content:encoded>
    So auf Anhieb sehe ich nichts, evtl. zwei Dinge:&lt;br /&gt;
- Das Werfen einer Exception aus dem stream wrapper heraus versuche ich immer zu vermeiden.&lt;br /&gt;
&lt;br /&gt;
- Das Verschieben des eigentlichen Ladens auf den Zeitpunkt des &quot;echten&quot; Zugriffs könnte ggf. ein Problem sein. Wie wird signalisiert, wenn es zu diesem Zeitpunkt ein Problem mit dem Zugriff gibt? 
    </content:encoded>

    <pubDate>Fri, 22 Jul 2011 17:34:02 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/97-guid.html#c497</guid>
    
</item>
<item>
    <title>Lukas: vfsStream 0.10.0 released</title>
    <link>http://stubbles.org/archives/97-vfsStream-0.10.0-released.html#c496</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/97-vfsStream-0.10.0-released.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=97</wfw:comment>

    

    <author>nospam@example.com (Lukas)</author>
    <content:encoded>
    Ahoi,&lt;br /&gt;
&lt;br /&gt;
nen bissel am thema vorbei .. naja halb .. aber ihr seit ja userland php stream wrapper experten. ich habe das ganze noch nicht im detail studiert, aber ein kollege hat regelmaessige seg faults auf den stream wrapper in jackalope zurueck gefuehrt:&lt;br /&gt;
https://github.com/jackalope/jackalope/blob/master/src/Jackalope/BinaryStreamWrapper.php&lt;br /&gt;
&lt;br /&gt;
vielleicht faellt euch da auf den ersten blick auf falls wir da was &quot;dummes&quot; tun. 
    </content:encoded>

    <pubDate>Fri, 22 Jul 2011 16:42:40 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/97-guid.html#c496</guid>
    
</item>
<item>
    <title>Frank: vfsStream 0.9.0 released</title>
    <link>http://stubbles.org/archives/96-vfsStream-0.9.0-released.html#c495</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/96-vfsStream-0.9.0-released.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=96</wfw:comment>

    

    <author>nospam@example.com (Frank)</author>
    <content:encoded>
    Thanks. &lt;img src=&quot;http://stubbles.org/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Fri, 22 Jul 2011 15:48:15 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/96-guid.html#c495</guid>
    
</item>
<item>
    <title>Zilvinas: vfsStream 0.9.0 released</title>
    <link>http://stubbles.org/archives/96-vfsStream-0.9.0-released.html#c494</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/96-vfsStream-0.9.0-released.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=96</wfw:comment>

    

    <author>nospam@example.com (Zilvinas)</author>
    <content:encoded>
    Hi,&lt;br /&gt;
&lt;br /&gt;
Just writing to say I appreciate the work you&#039;re doing. Thanks for a new release &lt;img src=&quot;http://stubbles.org/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Thu, 21 Jul 2011 10:56:23 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/96-guid.html#c494</guid>
    
</item>
<item>
    <title>aditya menon: Traits for PHP</title>
    <link>http://stubbles.org/archives/42-Traits-for-PHP.html#c483</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/42-Traits-for-PHP.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=42</wfw:comment>

    

    <author>nospam@example.com (aditya menon)</author>
    <content:encoded>
    @Christian&lt;br /&gt;
https://wiki.php.net/rfc/traits&lt;br /&gt;
&lt;br /&gt;
@author&lt;br /&gt;
Sure traits are going to make their way in. 5.4 alpha now supports traits. 
    </content:encoded>

    <pubDate>Thu, 07 Jul 2011 19:48:38 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/42-guid.html#c483</guid>
    
</item>
<item>
    <title>Christian: Traits for PHP</title>
    <link>http://stubbles.org/archives/42-Traits-for-PHP.html#c478</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/42-Traits-for-PHP.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=42</wfw:comment>

    

    <author>nospam@example.com (Christian)</author>
    <content:encoded>
    What are &quot;traits&quot;. what is it good for? Any links?&lt;br /&gt;
&lt;br /&gt;
Thanks 
    </content:encoded>

    <pubDate>Mon, 04 Jul 2011 20:26:42 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/42-guid.html#c478</guid>
    
</item>
<item>
    <title>Rasmus Schultz: My wishlist for PHP 6, pt3: Annotations</title>
    <link>http://stubbles.org/archives/8-My-wishlist-for-PHP-6,-pt3-Annotations.html#c456</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/8-My-wishlist-for-PHP-6,-pt3-Annotations.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=8</wfw:comment>

    

    <author>nospam@example.com (Rasmus Schultz)</author>
    <content:encoded>
    I love annotations! This post was one of the many I referenced early on, when I started designing my own library.&lt;br /&gt;
&lt;br /&gt;
In my opinion, the mistake made by you and countless others, is to invent new syntax. Although your syntax is closer to standard PHP-DOC syntax than some libraries, you&#039;ve added custom syntax for properties and values.&lt;br /&gt;
&lt;br /&gt;
PHP has (familiar and readily available) syntax for that already. Okay, so you saved a few keystrokes - but you lost all of your standard PHP language features. The only new syntax you should need, is @name... everything you&#039;re trying to do between the parentheses, PHP already has syntax for - and the rest is PHP-DOC, an already well-defined, widely accepted and broadly supported standard, plus a pair of parentheses.&lt;br /&gt;
&lt;br /&gt;
Have a look at my project&#039;s Wiki for more information:&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/php-annotations 
    </content:encoded>

    <pubDate>Wed, 18 May 2011 14:19:35 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/8-guid.html#c456</guid>
    
</item>
<item>
    <title>Frank: vfsStream 0.8.0 released</title>
    <link>http://stubbles.org/archives/81-vfsStream-0.8.0-released.html#c455</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/81-vfsStream-0.8.0-released.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=81</wfw:comment>

    

    <author>nospam@example.com (Frank)</author>
    <content:encoded>
    Hello PEM,&lt;br /&gt;
&lt;br /&gt;
as you might guess from the long time since your comment I&#039;m currently very busy and didn&#039;t had any time to check the issues. I&#039;m very sorry, but I hope to get back to vfsStream in the near future. 
    </content:encoded>

    <pubDate>Tue, 17 May 2011 21:06:06 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/81-guid.html#c455</guid>
    
</item>
<item>
    <title>Rasmus Schultz: State of annotations in the PHP world</title>
    <link>http://stubbles.org/archives/54-State-of-annotations-in-the-PHP-world.html#c454</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/54-State-of-annotations-in-the-PHP-world.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=54</wfw:comment>

    

    <author>nospam@example.com (Rasmus Schultz)</author>
    <content:encoded>
    I&#039;ve released my own annotation framework for PHP, and it is now stable - have a look:&lt;br /&gt;
&lt;br /&gt;
http://code.google.com/p/php-annotations/&lt;br /&gt;
&lt;br /&gt;
It&#039;s early days for this project still - although the framework itself is stable and complete, there is still a lot of documentation to be written, and I am planning a library of standard annotations.&lt;br /&gt;
&lt;br /&gt;
There is no place for discussion yet, but you&#039;re welcome to submit bug reports, or comment via email.&lt;br /&gt;
&lt;br /&gt;
Thanks! 
    </content:encoded>

    <pubDate>Tue, 17 May 2011 00:57:15 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/54-guid.html#c454</guid>
    
</item>
<item>
    <title>PEM: vfsStream 0.8.0 released</title>
    <link>http://stubbles.org/archives/81-vfsStream-0.8.0-released.html#c452</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/81-vfsStream-0.8.0-released.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=81</wfw:comment>

    

    <author>nospam@example.com (PEM)</author>
    <content:encoded>
    Hello Frank,&lt;br /&gt;
&lt;br /&gt;
Any news on the matter ? &lt;img src=&quot;http://stubbles.org/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Mon, 11 Apr 2011 11:48:53 +0200</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/81-guid.html#c452</guid>
    
</item>
<item>
    <title>Marcelo Gornstein: State of annotations in the PHP world, revisited</title>
    <link>http://stubbles.org/archives/79-State-of-annotations-in-the-PHP-world,-revisited.html#c450</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/79-State-of-annotations-in-the-PHP-world,-revisited.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=79</wfw:comment>

    

    <author>nospam@example.com (Marcelo Gornstein)</author>
    <content:encoded>
    Hello,&lt;br /&gt;
&lt;br /&gt;
I&#039;ve made an experimental patch to ZendEngine/PHP (5.3.5) to allow native annotations in the PHP language, the code can be found here: https://github.com/marcelog/AnoForPHP&lt;br /&gt;
&lt;br /&gt;
It allows 0 or more annotations (without the use of DocComments) with 0 or more arguments themselves, in classes, methods, properties, AND arguments for methods, i.e:&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
* The token chosen is &quot;@@&quot; because &quot;@&quot; was already taken.&lt;br /&gt;
*/&lt;br /&gt;
@@Annotation(key=&quot;value1&quot;)&lt;br /&gt;
class A {&lt;br /&gt;
@@Annotation(key=&quot;value1&quot;)&lt;br /&gt;
private $property;&lt;br /&gt;
&lt;br /&gt;
@@Annotation(key=&quot;value1&quot;)&lt;br /&gt;
private function aMethod(@@Annotation(key=&quot;value1&quot;) @@Annotation2 $a, $b) {&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
I plan to use this same patch for Ding, which currently supports annotations but from standard doc block comments.&lt;br /&gt;
&lt;br /&gt;
Regards! 
    </content:encoded>

    <pubDate>Mon, 14 Mar 2011 13:14:08 +0100</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/79-guid.html#c450</guid>
    
</item>
<item>
    <title>anehra63: Dependency Injection for static methods</title>
    <link>http://stubbles.org/archives/85-Dependency-Injection-for-static-methods.html#c447</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/85-Dependency-Injection-for-static-methods.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=85</wfw:comment>

    

    <author>nospam@example.com (anehra63)</author>
    <content:encoded>
    thanks for posting 
    </content:encoded>

    <pubDate>Wed, 10 Nov 2010 08:33:02 +0100</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/85-guid.html#c447</guid>
    
</item>
<item>
    <title>neo: Dependency Injection for static methods</title>
    <link>http://stubbles.org/archives/85-Dependency-Injection-for-static-methods.html#c446</link>
            <category></category>
    
    <comments>http://stubbles.org/archives/85-Dependency-Injection-for-static-methods.html#comments</comments>
    <wfw:comment>http://stubbles.org/wfwcomment.php?cid=85</wfw:comment>

    

    <author>nospam@example.com (neo)</author>
    <content:encoded>
    Surely that gives you a better interface. 
    </content:encoded>

    <pubDate>Wed, 10 Nov 2010 06:38:39 +0100</pubDate>
    <guid isPermaLink="false">http://stubbles.org/archives/85-guid.html#c446</guid>
    
</item>

</channel>
</rss>