const challenge

Jason House jason.james.house at gmail.com
Thu Jan 31 10:33:25 PST 2008


Steven Schveighoffer Wrote:

> However, I'm not sure how you use it, or if you need to have multiple 
> instances of x.

I made up the scenario based on what I remember from the const debates.  I don't have the original post or remember who posted it.  I was really hoping for those who regularly use const-based design patterns in other languages to jump in with examples that exist in their code.

I hoped that me providing an example might inspire others to add more examples.  I unfortunately don't have sufficient appreciation for the original poster's feeling to do it justice.  I also recall some argument about handling widget draw routines.  If they're a constant object but need to draw themselves on something.  I haven't done any detailed GUI programming outside of java beans or GTK, so I tried to stay away from it and hope someone else would post it.  I've at least done some logging and can appreciate problems with multi-threading.  

Mostly, I feel like the const debate has really died down (probably a good thing), but now we need to open the door once more to ensure potential users are happy with the const design.  I have to imagine there's still people out there that think transitive const is a bad thing and still others that think transitive const is the best thing since sliced bread.  I'd really love to see them jump into this thread and provide some real examples.



More information about the Digitalmars-d mailing list