Assignment without defining variable first

Bug #603953 reported by Eike on 2010-07-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Freeode
Wishlist
Eike

Bug Description

Currently all variables have to be defined by a data statement, before they can be used. This leads to clumsy code.
Currently all variables have to be defined by a data statement, before they can be used.
This leads to clumsy code.

Therefore implement assignment without defining the variable first (no data statement.)

 * Maybe limit feature to body of functions.
- Maybe limit feature to body of functions.

 * However if type inference and role inference finally works there should be no problem to allow it everywhere.
- However if type inference and role inference finally works there should be no problem
   * Inferring the role of "a + b", for which an intermediate variable has to be possibly created is the same as inferring the role of "c" in "c = a + b".
  to allow it everywhere.
  - Inferring the role of "a + b", for which an intermediate variable has to be possibly created
    is the same as inferring the role of "c" in "c = a + b".

 * Putting function arguments into the function's namespace could be handled this way too. A unified mechanism would simplify the interpreter.
- Putting function arguments into the function's namespace could be handled this way too.
  A unified mechanism would simplify the interpreter.

https://sourceforge.net/apps/trac/freeode/ticket/8

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

Other bug subscribers