From: Gavin Sinclair Date: 2002-10-15T01:18:26+09:00 Subject: Re: final in ruby From: "Kontra, Gergely" > Hi! > > I've seen so far, that a ruby method can be hacked to be > "unchangeable". > Will ruby some day support some kind of predicate or modifier, so I can > protect my method beeing overwritten? > > Gergo How would your method get overwritten anyway? (I know it's possible, so in some sense it's a rhetorical question, but by answering it we can discuss some design philosophies.) I have some sympathy for your concern, but I have learned to adopt the following attitudes: - if other people overwrite my method, that's their business; the warranty is void - if I overwrite my own method *accidentally*, I either have a messy design, a bad approach, or a small brain :) Gavin