Boo
  1. Boo
  2. BOO-381

Enhancements to property and required attributes

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5.6
    • Fix Version/s: 0.6
    • Component/s: Compiler
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      This patch let's you assign attributes to an auto-generated property, and let's you use the required attribute on properties (adds parameter check to the setter).

      class Customer:
      [property(FirstName, Attributes:[Required])]
      _fname as string

      class A:
      _fld1 = "abc"
      [Required]
      Property1:
      get:
      return _fld1
      set:
      _fld1 = value

      _fld2 = "def"
      [Required(len(value) < 10)]
      Property2:
      get:
      return _fld2
      set:
      _fld2 = value

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Doug H
            Reporter:
            Doug H
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: