You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like @nospecialize does not work on argument destructuring:
I want to use @nospecialize on a Pair (or a Tuple, does not matter) and Julia normally allows you to unpack the pair directly in the function definition:
foo((a, b)::Pair) =...
However, I would like to @nospecialize the Pair and
foo(@nospecialize (a, b)::Pair) =...
does not seem to be valid syntax, I get:
ERROR: syntax:"(a, b)" is not a valid function argument name around REPL[4]:1
It seems the macro code was not updated when argument destructuring was added?
The text was updated successfully, but these errors were encountered:
It looks like
@nospecialize
does not work on argument destructuring:I want to use @nospecialize on a
Pair
(or aTuple
, does not matter) and Julia normally allows you to unpack the pair directly in the function definition:However, I would like to @nospecialize the Pair and
does not seem to be valid syntax, I get:
It seems the macro code was not updated when argument destructuring was added?
The text was updated successfully, but these errors were encountered: