Missing 'delete' operator

91 views
asked Oct 19, 2015 in GUI Development by Customer
Objects can be created dynamically by using the 'new' operator. Why does the programming language Chora not provide a 'delete' operator?

1 Answer

0 votes
answered Oct 19, 2015 by EmWi Support
The entire memory management within an Embedded Wizard UI application is controlled by a Garbage Collector. It ensures that memory is released when it is not used any more. This means: You never need to worry about it!

As soon as there are no more references to an object, it is unreachable and can be freed by the Garbage Collector.

The big advantage: You cannot access any object which is already freed and you cannot free an object twice...

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...