Summary: Passing std.concurrency.receive() a function of type
                    Variant causes a static assert
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos

--- Comment #0 from Tim Keating <> 2010-08-25 
21:00:53 PDT ---
Example 13.6.2 from The D Programming Language (p. 405; trivial example of
using a function that takes a single Variant type as a "catch all" message
handler) does not compile for me. This is using DMD 2.048 and Phobos dated

The compile error occurs in the static assert on line 385 of concurrency.d. As
far as I can tell, the assert says "if we have only one param, and it's a
variant, die." Seems to me it needs an additional clause, "... and this isn't
the last element in the T array".

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to