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++ Core » does U++ use Smalltalk(Java) approach? [SOLVED] -No.
Re: does U++ use Smalltalk(Java) approach? [message #396 is a reply to message #395] Mon, 12 December 2005 14:50 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
1.: Yes. Smalltalk model is unsuitable for C++. For C++ it is better to have unrelated ("decoupled") classes and class hierarchies and glue them together using templates (usually containers).

2.: Value is intended just for storing 'values'. Now it is a little bit hard to explain what exactly 'value' is, and at the same time it is very important for U++ programming style.... (there is quite a lot of effort put into dealing with various types of objects - values, pick values, non-copyable objects - non-values etc...)

Perhaps better is to provide some examples: number is a Value, date is a Value, String is a Value, etc...

Maybe a right descrition is that "for value, object identity does not matter, just its content (well, ehm, its value Smile).

I wish I could explain that more....

Not also that Value supports some value-like operations, like comparing values (by their, well, uhm, values...) converting similar types of values (you can assign 'int' to the Value and then assign this value to 'double', same for Date / Time etc.).
 
Read Message
Read Message
Previous Topic: several languages in the same String?
Next Topic: widgets allocation - if not on the heap then - where?
Goto Forum:
  


Current Time: Thu Sep 04 01:17:32 CEST 2025

Total time taken to generate the page: 0.04609 seconds