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 existing vars in linear destruct #10

Open
tjhance opened this issue Dec 15, 2020 · 0 comments
Open

allow existing vars in linear destruct #10

tjhance opened this issue Dec 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tjhance
Copy link
Collaborator

tjhance commented Dec 15, 2020

I frequently want to do a destruction,

linear var Foo(a) := foo;

where a is an existing linear var (e.g., the out parameter of the method I'm writing). This is currently not possible. As a workaround I always have to do

linear var Foo(a_tmp) := foo;
a := a_tmp;
@tjhance tjhance added the enhancement New feature or request label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant