Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Controls & classes design questions
Re: Controls & classes design questions [message #14742 is a reply to message #14735] Wed, 12 March 2008 14:34 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
HenryXin wrote on Wed, 12 March 2008 03:48

I also read these code.
This means the struct Moveable actually provide a moveable interface with NTL, doesn't provide the valid check method? Is right?
Thanks. Embarassed


Not quite sure I understand....

There is no way how to check moveabitity by either compiler or in runtime. Therefore type has to be marked as moveable by programmer, by inheriting from Moveable.

Actually, the alternative would be to avoid Moveable completely, but that still feels a little bit risky. Besides, all non-moveable types can still be stored in Array (including objects with virtual methods etc....)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multithreading ans updating widgets
Next Topic: DropList bug when removing last item
Goto Forum:
  


Current Time: Sat May 25 22:05:37 CEST 2024

Total time taken to generate the page: 0.00390 seconds