Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
day and night could be viewed as another property of the time class or an assertion you could make against an instance of time, base on an artificial line between day and night. I don't consider day and night to be artificial constructs, because nature does specific things during those times. For most bats, night is the time to wake up and start hunting, while it's time to go to sleep for a robin. The boarder between the two is fractal-like. If you can figure out the fractal's underlieing pattern, it should be easy to program your is_day and is_night methods, since fractal generators are surprisingly simple once you know the pattern. If you can't figure out the pattern, it'll be all but impossible without some artificial agreement. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated In reply to Re: Re: The world is not object oriented
by hardburn
|
|