From: Yohanes Santoso Date: 2002-07-01T17:11:46+09:00 Subject: Re: functions need declaring before use Daniel writes: > I've noticed that functions require that they be declared before they can > be used. This came as somewhat as a blow as I orgaznie my code by putting > my main code first, and function listing at the end. Is this set in stone? > Plans to change? Reasoning? > > Daniel Is this what you mean? irb(main):001:0> def b irb(main):002:1> a irb(main):003:1> end nil irb(main):004:0> def a irb(main):005:1> "aa" irb(main):006:1> end nil irb(main):007:0> b "aa" YS.