[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



    FWIW - the concept of 'const correctness' in C++ is one that I've 
come to love and wish other languages would support it, especially 
python. The other thing missing from python is a parameterized type 
capability like C++ templates. You can fake it via the reflection 
capabilities of python but you're gonna pay a performance penalty 
whereas C++ templates are often a performance improvement.

    -- Ben Scherrey

Michael Hirsch wrote:

><google_search ... read .. > 
>
>Wow, that's pretty cool.  Is there a way to do it where you don't have
>to write the getter/setter?  So, if I'd like to have a variable exposed
>to read and write I don't need to do anything because by default
>everything is available outside the class.  But if I want a read only
>member, I need to setup a reader methods and declare it.  What I'd
>really like is declare a member read only, but not have to write
>accessor methods unless they are needed.  I didn't see that mentioned in
>any of the docs.  Did I miss it?
>
>Thanks,
>
>Michael
>
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
&gt;<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt;
&gt;  
&gt;


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01292" href="msg01292.html">[ale] Py[t]hon syntax (sic)</a></strong>
<ul><li><em>From:</em> jknapka at kneuro.net (Joe Knapka)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01275" href="msg01275.html">[ale] Py[h]hon syntax (sic)</a></strong>
<ul><li><em>From:</em> mhirsch at nubridges.com (Michael Hirsch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01278.html">[ale] Py[h]hon syntax (sic)</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01280.html">[ale] mod_perl + Apache</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01275.html">[ale] Py[h]hon syntax (sic)</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01292.html">[ale] Py[t]hon syntax (sic)</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01279"><strong>Date</strong></a></li>
<li><a href="threads.html#01279"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>