Dave Thomas <dave / pragprog.com> writes: > On Feb 2, 2004, at 8:19, Brad wrote: > > > All: > > > > This may be mentioned somewhere, but I have yet to see an explanation > > of what the difference between: > > > > Class#method > > > > and > > > > Class.method > > > > is in the documentation. > > It's a way of distinguishing between an instance method and a class > method in the documentation. When we say IO#each_byte, we're referring > to an instance method of class IO, whereas IO.foreach is a class > method. > > I personally don't like to convention too much, but I'm not sure I can > think of a better one. I've seen Smalltalkers use this: MyClass >> instanceMethod MyClass class >> classMethod Jim -- Jim Menard, jimm / io.com, http://www.io.com/~jimm/ "An operating system is a collection of things that don't fit into a language. There shouldn't be one." -- Dan Ingalls