Is your feature request related to a problem? Please describe.
Sometimes functions explicitly related to type. For example substr() is used for string. In current realization we always need to pass object like argument:
function getDouble(integer var) -> integer
{
return var * 2;
}
...
integer var = 5;
integer d = getDouble(var);
...
Will be good if we can use function like a method for first object in arguments
Describe the solution you'd like
function getDouble(integer var) -> integer
{
return var * 2;
}
...
integer var = 5;
integer d = var.getDouble();
Is your feature request related to a problem? Please describe. Sometimes functions explicitly related to type. For example substr() is used for string. In current realization we always need to pass object like argument:
Will be good if we can use function like a method for first object in arguments
Describe the solution you'd like