Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow full primitive expressions to be passed as function parameters #19

Open
ostap opened this issue Oct 16, 2012 · 0 comments
Open

allow full primitive expressions to be passed as function parameters #19

ostap opened this issue Oct 16, 2012 · 0 comments

Comments

@ostap
Copy link
Member

ostap commented Oct 16, 2012

currently bandicoot supports only constant expressions to be passed to the functions, e.g. the following fragment works fine:

fn GetBooks(type string) Books {
    return select (genre == type) shelf;
}

# a constant expression
GetBooks "novel";

but the following does not work so far:

fn GetInexpensive(genre string) Books {
    return select (price < 10.0) (GetBooks genre);
}

more than that, the error message is confusing:

unknown identifier 'genre' neither function call nor variable declared with this name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant