Stream: project-inline-asm

Topic: format args

bstrie (Jan 07 2020 at 23:13, on Zulip):

I'm reading the pre-rfc and seeing that the syntax seeks to intentionally mirror the format macro with e.g. asm!("mov {}, 5", out(reg) x);, but now that the RFC for implicit named format args has been accepted ( that might warrant a note on whether or not asm!intends to support the same implicit capture syntax (which I assume it wouldn't?)

Amanieu (Jan 08 2020 at 06:46, on Zulip):

You're right, we don't intend to support it. Mainly because it doesn't provide a way to specify in/out or the register class.

gnzlbg (Jan 09 2020 at 09:16, on Zulip):

Maybe we could extend the syntax, e.g., {name:in} and {name:out} and {name:inout} or similar

Amanieu (Jan 09 2020 at 09:33, on Zulip):

We already use the space after : for template modifiers.

Lokathor (Jan 09 2020 at 09:48, on Zulip):

there's gotta be some way to work it out.

Amanieu (Jan 09 2020 at 10:32, on Zulip):

I decided to defer this for the future. It's not required for an MVP.

gnzlbg (Jan 09 2020 at 11:03, on Zulip):

Sounds good. Could we have an open tracking issue for this so that we don't forget ?

Amanieu (Jan 10 2020 at 10:15, on Zulip):

I'll add it as future work in the RFC

Last update: Jul 02 2020 at 19:55UTC