Daneel Yaitskov
2014-09-17 14:04:18 UTC
Hi,
Does Rust macro have flow control based on a variable value?
I didn't find such info here http://doc.rust-lang.org/guide-macros.html.
I'd like to get a macro expading a for loop.
doTimes(3, println!("DDDD"))
=>
println!("DDDD")
println!("DDDD")
println!("DDDD")
Does Rust macro have flow control based on a variable value?
I didn't find such info here http://doc.rust-lang.org/guide-macros.html.
I'd like to get a macro expading a for loop.
doTimes(3, println!("DDDD"))
=>
println!("DDDD")
println!("DDDD")
println!("DDDD")
--
Daneel S. Yaitskov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140917/d335941f/attachment.html>
Daneel S. Yaitskov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140917/d335941f/attachment.html>