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

Try to support transparent usage of operators #14

Closed
YarikTH opened this issue Jan 16, 2021 · 1 comment
Closed

Try to support transparent usage of operators #14

YarikTH opened this issue Jan 16, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request invalid This doesn't seem right

Comments

@YarikTH
Copy link
Owner

YarikTH commented Jan 16, 2021

I would like to make the following code possible:

ureact::var_signal<int> a = make_var(&c, 1);
ureact::var_signal<int> b = make_var(&c, 1);
if( a < b ){
}else if( a > b ){
}else if( a == b ){
}

a = a + b;
a += b;

The main difference with the current usage is the absence of the .value() method calls.
a = b + c is much clear than a.set_value( b.value() + c.value() )

But now operators are overloaded to make easy signals creation. So need to investigate what can be done with it.

@YarikTH
Copy link
Owner Author

YarikTH commented Jun 17, 2021

Not needed

@YarikTH YarikTH closed this as completed Jun 17, 2021
@YarikTH YarikTH self-assigned this Jun 21, 2021
@YarikTH YarikTH added enhancement New feature or request invalid This doesn't seem right and removed very low priority labels Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant