Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: const correctness

by RMGir (Prior)
on May 14, 2008 at 14:45 UTC ( [id://686535]=note: print w/replies, xml ) Need Help??


in reply to const correctness

Not directly relevant to your question, John M. Dlugosz, but the "D" language has an interesting approach to const-ness.

Mike

Replies are listed 'Best First'.
Re^2: const correctness
by BrowserUk (Patriarch) on May 14, 2008 at 15:40 UTC

    Its interesting stuff, but that article is misleading/out-of-date. Quotes like:

    Which brings up another aspect of const in D - it's transitive. Const in C++ is not transitive,

    suggests that D's const is superiour to C++ const because it is transitive. But, they more recently had to add an new keyword: invariant to try and achieve that transitivity. The big debate now is how to make those two work together. More interesting stuff, unless you're trying to get some work done.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://686535]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found