The Mercury Project
Re: [mercury-users] Newbie questions

Home

News

Information
  Overview
  Features
  Documentation
  Papers
  Developers
  Events
  Reports

Mailing Lists
  Developers
  Users
  Search

Download
  Current Release
  Snapshot
  Old Releases

Related
  Applications
  MCORBA
  Contributing Code

Contact

Search

Subject: Re: [mercury-users] Newbie questions
From: Tyson Dowd (trd@cs.mu.OZ.AU)
Date: Mon Dec 11 2000 - 13:44:50 EST


On 10-Dec-2000, John Eikenberry <jae@zhar.net> wrote:
>
> I've just started teaching myself Mercury. As a first fun teaching project
> I'd like to write a robot for RealTimeBattles, a robot battle sim game. To
> do this I need to figure out how to either handle Unix signals or the libc
> select function (I'm doing this in linux). After hunting around the docs
> and the email archives, I'm still not sure how either of these would work
> in Mercury.
>
> Based on some of the discussions in the email archive, it seems like the
> select function isn't supported yet. It did seem like there is support for
> signals though, based on some conversations and m-dev postings from '98.
>
> I'd really appreciate a pointer to some docs/examples on either of these
> (preferably both).

There's an implementation of a POSIX library in the mercury-extras
libraries.

extras/posix/posix.select.m

Has code for doing select.

(I haven't used this code myself, so I'm not sure whether it has suffered
any bit-rot since it was written).

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd@cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users@cs.mu.oz.au
administrative address: owner-mercury-users@cs.mu.oz.au
unsubscribe: Address: mercury-users-request@cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request@cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



This mail archive was generated by hypermail 2b25 on Sun Dec 31 2000 - 00:40:04 EST.