Implement closures and nested classes.

Bug #593030 reported by Eike
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freeode
In Progress
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.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.