From: Sander Land Date: 2006-07-03T02:24:53+09:00 Subject: Re: [Solution] [QUIZ] C-Style Ints (#85) My solution consists of two functions which generate new FWI classes you can use. By using coerce it supports calculations with any combination of FWI and normal integers. rafb link: http://rafb.net/paste/results/We7miQ42.html require 'delegate' def UnsignedFWI(bits = 32) Class.new(DelegateClass(Bignum)) { define_method(:fix) {|n| n & (1<>,:~].each{|m| define_method(m) {|*args| self.class.new super(*args) } } } end def SignedFWI(bits = 32) Class.new(UnsignedFWI(bits)) { define_method(:fix){|n| (n & (1<