Author Topic: Function Formats  (Read 1713 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Function Formats
« on: January 31, 2014, 04:03:30 PM »
6 ways to express a simple function:

Code: [Select]

function f(sys v,w) as sys = v*w

function f(sys v,w) as sys {return v*w}

sys f(sys v,w)
{
  return v*w
}

function f(sys v,w) as sys
  return v*w
end function

function f(sys v,sys w) as sys
  return v*w
end function

function f(byval v as sys, byval w as sys) as sys
  function=v*w
end function



print f(2,3)