Implement closures and nested classes.

Bug #593030 reported by Eike on 2010-06-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freeode
Wishlist
Eike

Bug Description

The current implementation of the environment is not smart enough to allow arbitrary nesting of classes and functions. Therefore the environment implementation should be improved.
The current implementation of the environment is not smart enough to allow arbitrary nesting of classes and functions. Therefore the environment implementation should be improved.

Especially interesting are class definitions inside functions, because functions that return classes could mimic parameterized types.
Especially interesting are class definitions inside functions, because functions that return classes could mimic parameterized types.

Problematic is the "this" argument and the automatic lookup of member attributes through it. C++ therefore probably has no class definitions inside functions.

Eike (eike-welk) on 2010-06-12
Changed in freeode:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → Wishlist
Eike (eike-welk) on 2010-07-10
tags: added: interpreter
Eike (eike-welk) on 2012-02-29
Changed in freeode:
assignee: nobody → Eike (eike-welk)
status: Confirmed → In Progress
description: updated
Eike (eike-welk) on 2012-02-29
Changed in freeode:
milestone: none → 0.4.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers