Pooh program example 01-add.p

Test 01-add.p

Source of programm

# mixing strings with numers is allowed in arithmetic operators
a = '22'
b = 3

c = a + b

println( ~msg c )

Standard output for 01-add.p

25.000000

Trace output for 01-add.p

002|a = '22'
003|b = 3
005|c = (a:'22' + b:3):2.500000e+01
007|println( ~msg c:2.500000e+01 )...