ref conditional expression and increment operator #4227
Answered
by
VolodymyrBS
FaustVX
asked this question in
Language Ideas
-
With the introduction of ref conditional, I thought this was possible : (ref a <= b ? ref x : ref y)++; But I have to do that instead : ref var min = ref a <= b ? ref x : ref y;
min++; And of course, it should valid for |
Beta Was this translation helpful? Give feedback.
Answered by
VolodymyrBS
Dec 13, 2020
Replies: 1 comment 1 reply
-
you already could do it but you should remove 'ref' keyword before 'a'. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FaustVX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you already could do it but you should remove 'ref' keyword before 'a'.
take a look https://sharplab.io/#v2:D4AQTAjAsAUCDMACciDCiDetE+UkALIgLIAUAlNrljLnYgJYB2ALogIaIC8iYANIgBG3RPAEAPEQAYBAT2kBuKvUSlOAHh7CA/IgBOAUwBmiSQC59xxLPIBqW0tq4AvoljOgA===