メインコンテンツまでスキップ
バージョン:25.2

symbol colon

  • used in property list between keys and values

    • Examples:

       set view to {sky:"blue", terrain:"hilly", plants:"sparse"}
       set redactions to {:} -- an empty property list
    • Related: propertyListFormat

  • used between parameter variable names and their default values (new in 2.02)

    • Examples:

       to updateReport with balance:0, increment:10
  • used optionally in non-function handler before formal parameters

    • Examples:

       to handle simplifiedValue: numerator, denominator
  • used in square bracket function syntax before arguments

    • Examples:

       put [connection sendMsg:"update", 44]