On Sat, Dec 25, 2010 at 2:34 AM, serialhex <serialhex / gmail.com> wrote:
> Colin, your amazing insight has led me to programming greatness!!!
>
> ...ok, mabye not so much, but i have (mostly) solved the problem using th=
e
> Delegate class, heres the relevant code:
>
> ##
> require 'delegate'
>
> class SurrealNil < DelegateClass(NilClass)
> =A0include Comparable
> =A0def <=3D> other
> =A0 =A0return -1
> =A0end
> =A0def initialize
> =A0 =A0super nil
> =A0end
> end
> ##
>
> it returns -1 all the time so no matter what you compare it against it's
> less than that (i mean, sereously, an empty set is WAAAAYYYYYYY less than
> neg infinity, cause with neg infinity you still have SOMETHING right?)
>
> so while the rest of the project is FAR from finished, at least this part=
 is
> completed. =A0thanks for the help!!

If you need additional input I have written about numeric classes in our bl=
og
http://blog.rubybestpractices.com/posts/rklemme/019-Complete_Numeric_Class.=
html

Kind regards

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/