Boo
  1. Boo
  2. BOO-80

implicit conversion from single char string literal to char

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: Compiler
    • Labels:
      None
    • Number of attachments :
      0

      Description

      string literals with a single char should be implicitly converted to char whenever necessary in assignments, function arguments and cast expressions.

      def printChar(ch as char):
      System.Console.Write(ch)

      c1 as char = "b"
      c2 = cast(char, "o")
      printChar("o")

        Activity

        Hide
        Rodrigo B. de Oliveira added a comment -

        lots of things for the 0.4 release already.

        Show
        Rodrigo B. de Oliveira added a comment - lots of things for the 0.4 release already.
        Hide
        Rodrigo B. de Oliveira added a comment -

        Replaced by char literals in the form:

        ch = char('a')

        Show
        Rodrigo B. de Oliveira added a comment - Replaced by char literals in the form: ch = char('a')

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Rodrigo B. de Oliveira
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: