From: Harry Ohlsen Date: 2002-01-29T06:58:55+09:00 Subject: Re: Ensuring a specific type In article <200112111349.fBBDnsC26262@moulon.inra.fr>, "ts" wrote: >>>>>> "F" == Fabian Senftenberg writes: > > F> Now, is it possible to "cast" a block in order to be able to use a F> > specific function on it? Like: #{@start + @duration}.usec where the > ^^^^^^^^^^^^^^^^^^^^^ > F> whole #{} block is supposed to be of kind Time? > > Well, I've a problem with this. For me this is a comment not a block > :-) I think what he meant was (@start + @duration). Ie, he wants the sum to evaluate to an object of type Time. I would have said it already does, assuming @start is a Time ... and assuming the Time#+ returns a Time, hence no "cast" should be necessary. Or have I misunderstood? Perhaps the issue is really just that he's put it in a string.