[ruby-cvs:68751] shyouhei:r61553 (trunk): initializer paren-string `{("str")}` is a C99ism

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Tue Jan 2 15:41:50 JST 2018

shyouhei	2018-01-02 15:41:49 +0900 (Tue, 02 Jan 2018)

  New Revision: 61553


    initializer paren-string `{("str")}` is a C99ism
    First, `"str"` is a string constant but `("str")` is not.  It is a
    random expression whose type happen to be const char*.  Second,
    non-constant initializer element is forbidden in C90.  Mixture of
    these two results in the fact that `{("str")}` is a C99ism.
    Just delete the parens and everything goes well.

  Modified files:

More information about the ruby-cvs mailing list