← Back to Users
logmaster's activity in the archive.
--I want to be able to pass functions around like any other object#Use Proc.newp = Proc.new { } ; o.method( p )--Not quite multi-paradigm enough for my taste (why can't I work with plain functions, for example, instead of everything's-a-method?)# Works fine.def hello() print "hello world\n"endhello
--I want to be able to pass functions around like any other object
#Use Proc.new
p = Proc.new { } ; o.method( p )
--Not quite multi-paradigm enough for my taste (why can't I work with plain functions, for example, instead of everything's-a-method?)
# Works fine.
def hello()
print "hello world\n"
end
hello