[Solved] Calling macro differently

Hi,

To call a macro we do

vec!

But https://github.com/rust-ndarray/ndarray/blob/master/src/arrayformat.rs#L74,
The format macro is called with out asterisk. How is this valid?

That is not a macro call (you can tell because there is no !). It is calling the function format passed as one of the arguments of format_array.


https://github.com/rust-ndarray/ndarray/blob/20d372a17f768b8344981d17495289bee71f24c4/src/arrayformat.rs#L17-L20

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.