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 » widgets allocation - if not on the heap then - where?
widgets allocation - if not on the heap then - where? [message #397] Mon, 12 December 2005 16:14 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
widgets allocation - if not on the heap then - where?

http://www.leapheap.com/classic_organisation.jpg
picture from http://www.leapheap.com/

[Updated on: Mon, 12 December 2005 16:34]

Report message to a moderator

Re: widgets allocation - if not on the heap then - where? [message #399 is a reply to message #397] Mon, 12 December 2005 16:41 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
also from U++ Home page:

Quote:

The most important is that Ultimate++ does not require widget objects to be allocated on the heap.


Quote:

GUI toolkit just references them, it neither creates them nor destroys them.
Re: widgets allocation - if not on the heap then - where? [message #402 is a reply to message #399] Mon, 12 December 2005 17:18 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Mon, 12 December 2005 10:41

also from U++ Home page:

Quote:

The most important is that Ultimate++ does not require widget objects to be allocated on the heap.


Quote:

GUI toolkit just references them, it neither creates them nor destroys them.




Well, it is a bit more complicated. In fact, "internals" of widgets often reside on the heap. It is the same as this situation:

{
std::string alfa;
alfa = "Something";
}

now, where is alfa located? alfa itself in in the stack, but it might allocate some heap storage.

More complicated

struct Foo {
std::string alfa;
};

What is important is that U++ does not require you to have

struct Dialog {
Button *ok;

Dialog() { ok = new Button; }
};

This of course requires GUI just referencing thing, not deleting them....

Now you are the talented writer to describe this better Smile
Previous Topic: does U++ use Smalltalk(Java) approach? [SOLVED] -No.
Next Topic: About Events ...
Goto Forum:
  


Current Time: Sun Apr 28 11:04:50 CEST 2024

Total time taken to generate the page: 0.02809 seconds