"Sukit Tretriluxana" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
Ed, > > I really appreciate your time in explaining this to me. > I've posted my fair share of queries to this list and was more than happy to repay some of that kindness by helping someone else out. > > Definitely what you have provided really helps. > I enjoyed putting it together, and it was good to know that a piece of unfinished code had some use [I'd started it to solve a problem then found I didn't need it after all]. Besides, it also gave me an excuse to start putting some of the things I'd been reading in CTM into practice :) ! > > Most importantly, it confirms my understanding that Oz really > doesn't have built-in bit-wise operations. After thinking > about it for a while, according to my understanding, it kind > of makes sense since an integer in Oz is defined as a pretty > high level abstraction. It is portable accross hardward and > can grow automatically as much as it needs to be. Having > the bit-wise operation would perhaps raise a number of > questions and issues of how to do that without sacrificing > the abstraction. > Sure, it certainly makes sense. On reading your response and re-reading your post, though, I now realise I may have pitched my response at too simplistic a level: my apologies for that. It would seem that you are after an industrial strength set of bit manipulation routines. My code sample certainly doesn't qualify, but based on a recent post from Fred Spiessens it sounds like you may well be in luck. > > Anyhow, I was hoping, before getting your response, that > the standard library might have something already to make > this a little bit easier. > > Apparently, this is unfortunately not the case. > I'm guessing that in general, though, since Oz is a research-oriented language, particularly logic / constraint, and concurrent / distributed programming, that library-creation efforts would mostly be concentrated in these areas. As mentioned earlier, though, you may well be in luck and have available an industrial-strength bit manipulation library. Oh well, back to exploring Oz. In learning Oz I'd actually hoped to better grasp functional programming. Then I discovered the Oz 'Cell' type [and Chapter 6 of CTM] ... and my 'functional' coding endeavours have gone out the window ;) ! Cheers, Anthony Borla _________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
