Previous topic

Built-In Processors, Constants, and Switches (Part III)

Next topic

Ring and Amplitude Modulation

This Page

Shorthand Declarations

# Regular Declaration
constant Integer {
        value:  1
        meta:   'A constant block called Integer with an integer value'
}

# Shorthand Declaration
1 >> Integer;
# Regular Declaration
constant Real {
        value:  1.0
        meta:   'A constant block called Real with a real value'
}

# Shorthand Declaration
1.0 >> Real;
# Regular Declaration
constant String {
        value:  'One'
        meta:   'A constant block called String with a string value'
}

# Shorthand Declaration
'One' >> String;
# Regular Declaration
constant IntegerBundle [3] {
        value:  [1, 2, 3]
        meta:   'A constant block bundle called IntegerBundle with an integer values'
}

# Shorthand Declaration
[1, 2, 3] >> IntegerBundle;
# Regular Declaration
constant RealBundle [3] {
        value:  [1.0, 2.0, 3.0]
        meta:   'A constant block bundle called RealBundle with a real values'
}

# Shorthand Declaration
[1.0, 2.0, 3.0] >> RealBundle;
# Regular Declaration
constant StingBundle [3] {
        value:  ['One', 'Two', 'Three']
        meta:   'A constant block bundle called StringBundle with a sting values'
}

# Shorthand Declaration
['One', 'Two', 'Three'] >> StringBundle;