users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: min and max in arithmetic ?


From: Daniel Diaz
Subject: Re: min and max in arithmetic ?
Date: Fri, 21 Jun 2002 19:05:22 +0200

Hi Jasper,

this is not difficult files: Pl2Wam/code_gen.pl (add a fact),
BipsPl/arith_inl_c.c (code) and BipsPl/inl_protos.h (protos).

I have done this, it is in the 1.2.14. You can get is at (.tar.gz +
RPM).

ftp://ftp.inria.fr/INRIA/Projects/contraintes/gprolog/unstable

Hope this helps

PS: I just see your post about your contrib... This is because you are
not a member of the mailing list and by default only members can post
mails in this list (to avoid SPAM). So, maybe it is a good idea to
subscribe. see  http://gnu-prolog.inria.fr/#maillist for more
information.


Jasper Taylor wrote:
> 
> Hi...is there any plan to incorporate min and max (return lesser or greater of
> two values) into gprolog's arithmetic? I'm porting an application from
> Sicstus, which includes this feature.
> 
> I tried to do it myself simply by looking through the source for all the
> places where the arithmetic operators appear and adding min and max in what
> seems a relevant way -- but this just makes a build that produces a
> segmentation violation every time they are used.
> 
>         --Jasper
> 
> _______________________________________________
> Users-prolog mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/users-prolog



reply via email to

[Prev in Thread] Current Thread [Next in Thread]