holgerl / hilvl

The hilvl programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using service as lone argument

holgerl opened this issue · comments

When invokining an action on a service, the service can be named alone as the first term:

MyService myAction 1

Should it not then be possible to use it alone as an argument:

@ var foo = MyService
foo myAction 2 // Does not work

It already works if is written with the . action on @:

@ var foo = (@ . MyService)

The rule can be that when naming a service or variable alone, it is searched for in the current scope hierachy (the same effect as using @ . <name>.