btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

Global keyword #65

Closed avarayr closed 8 years ago

avarayr commented 8 years ago

Great work. I love mammouth! But there's one issue. it does not support global keyword. For example

abc = 1 
func myfunc ->
    global abc <--------------
    echo abc
avarayr commented 8 years ago

also please make possible use keyword on closures

myvar = 1
func (args)(myvar) -> # This is anonymous function (closure)
    echo myvar
btwael commented 8 years ago

Working on this, thank you for reporting :+1: