- From: Boris Zbarsky <notifications@github.com>
- Date: Fri, 22 Feb 2019 21:10:42 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 23 February 2019 05:11:05 UTC
Consider this IDL:
```
typedef [Clamp] long ClampedLong;
interface Bar {
void func(ClampedLong arg);
};
```
Is this valid IDL? Per https://heycam.github.io/webidl/#idl-type-extended-attribute-associated-with step 6, the extended attributes "associated with" `ClampedLong` include `[Clamp]`. But https://heycam.github.io/webidl/#Clamp says:
> A type that is not an integer type must not be associated with the [Clamp] extended attribute.
and `ClampedLong` is not an "integer type" in the sense linked here, as far as I can tell...
Presumably the intent is to allow this, right? That should be made clearer.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/649
Received on Saturday, 23 February 2019 05:11:05 UTC