Skip to content

Compiler: Allow local variable declarations within block #51

@FunctionPoint

Description

@FunctionPoint

Example

myMethod
    [ :a1 :a2 | 
        | v | v := 1. self onValue: v ] value.
!

Pharo has this too.
Its is especially useful when blocks are called async,
that need the correct variable instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions