Thread overview
[Issue 15286] is(typeof(symbol))
Nov 05, 2015
Sobirari Muhomori
Nov 05, 2015
Sobirari Muhomori
Nov 06, 2015
Luís Marques
Jul 29, 2022
RazvanN
Aug 10, 2022
Dlang Bot
November 05, 2015
https://issues.dlang.org/show_bug.cgi?id=15286

--- Comment #1 from Sobirari Muhomori <dfj1esp02@sneakemail.com> ---
Well, it reads:
---
Type is the type being tested. It must be syntactically correct, but it need not be semantically correct. If it is not semantically correct, the condition is not satisfied.
---

Is it not enough?

--
November 05, 2015
https://issues.dlang.org/show_bug.cgi?id=15286

--- Comment #2 from Sobirari Muhomori <dfj1esp02@sneakemail.com> ---
That said I would prefer it to be extended to just `is(foo)` to check correctness of a declaration without needing typeof.

--
November 06, 2015
https://issues.dlang.org/show_bug.cgi?id=15286

--- Comment #3 from Luís Marques <luis@luismarques.eu> ---
No, I don't think it is at all obvious from the description of `is` and from
the description of `typeof` that we can use `is(typeof(foo))` to check whether
foo exists and therefore can be used.

--
December 24, 2016
https://issues.dlang.org/show_bug.cgi?id=15286

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |trivial
                 CC|                            |andrei@erdani.com

--
July 29, 2022
https://issues.dlang.org/show_bug.cgi?id=15286

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> ---
PR: https://github.com/dlang/dlang.org/pull/3357/

--
August 10, 2022
https://issues.dlang.org/show_bug.cgi?id=15286

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #3357 "Fix Issue 15286 -  is(typeof(symbol))" was
merged into master:

- 8d86a16d4ef382f82c67f78b17f1cadd8dbd3121 by RazvanN7:
  Fix Issue 15286 -  is(typeof(symbol))

https://github.com/dlang/dlang.org/pull/3357

--