-
Notifications
You must be signed in to change notification settings - Fork 96
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
[Feature] Call Amber function from Bash script #253
Comments
I think it should be possible to do so per individual function, while keeping the prefix/renaming for everything else. |
It should make sense to not rename functions and should be fine. It is something that @Ph0enixKM can explain better then me. |
Function renaming is because we have template functions and the fact that you can declare the same function with the same name in multiple files in Amber. We don't store the position of where in code is the function declared though. I think that we can easily implement this idea you provided with some env fun foo(name: Text) {
echo "Hello {name}!"
} source amber-code.sh
foo "Adam"
# Output: Hello Adam! |
@Ph0enixKM why |
Maybe |
Using the This would lead to code looking like this: pub fun my_fun() {
echo "exported"
}
export(my_fun) |
This right now is impossible as the function gets renamed with the compilation...
Maybe we need a flag to compile with keeping the same function names.
The text was updated successfully, but these errors were encountered: