From: Dave Thomas Date: 2003-05-20T03:17:29+09:00 Subject: Re: public/protected/private syntax Yukihiro Matsumoto wrote: > Hi, > > In message "Re: public/protected/private syntax" > on 03/05/20, Dave Thomas writes: > > |So, any chance you might reconsider??? :) > > Once I decide, it would cost me a few minutes. But we have to discuss > and get consensus about what "def" returns (is Symbol OK for you guys?). What would be the impact of having it return an unbound method? Is there any way to optimize this so that it only generates the return object if it knows that it is being used? > In addition, we also have to re-visit return values from "class" and > "module" statements. Don't they already return the value of the last statement executed? This seems to be a Good Thing, as it is flexible. This way of doing things obviously doesn't apply to 'def', which doesn't execute its body at 'compile' time. Cheers Dave