From emerson@ppgia.pucpr.br Mon Jul 16 19:53:06 2001 Received: from hermes.ppgia.pucpr.br (ppgia.pucpr.br [200.192.116.20]) by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f6GHr5X18510 for ; Mon, 16 Jul 2001 19:53:05 +0200 (MET DST) Received: from ppgia.pucpr.br (loki.ppgia.pucpr.br [10.32.2.224]) by hermes.ppgia.pucpr.br (Postfix) with ESMTP id 9F1DD82B69 for ; Mon, 16 Jul 2001 14:52:57 -0300 (BRT) Sender: emerson@ppgia.pucpr.br Message-ID: <3B532A30.E032700C@ppgia.pucpr.br> Date: Mon, 16 Jul 2001 14:53:53 -0300 From: Emerson =?iso-8859-1?Q?Lu=EDs?= dos Santos Organization: PPGIA - PUCPR X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-13cl i686) X-Accept-Language: pt-BR, en MIME-Version: 1.0 To: prolog@swi.psy.uva.nl Subject: Re: [SWIPL] arithmetic_function References: <20010714200815Q.sota@midway.uchicago.edu> <004d01c10cd0$3f6e2b00$c901a8c0@MINERVA> <3B5209BC.2477B2EF@midway.uchicago.edu> <004c01c10db5$0aba2ea0$c901a8c0@MINERVA> Content-Type: multipart/alternative; boundary="------------DF0D5A9A7B41DEBBF9243CEC" --------------DF0D5A9A7B41DEBBF9243CEC Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I got a similar error when using arithmetic functions: ? - X is some_function(2). X = 8 ? - 5 < some_function(2). ERROR: Arithmetic: `some_function/1' is not a function Could somebody tell me why? -- £############################################################£ #¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ Emerson Luís dos Santos ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬# #************************************************************# #! Mestrando - Laboratório AgP/Siemens.......................# #! Grupo de Sistemas de Informação...........................# #! Programa de Pós-Graduação em Informática Aplicada - PPGIA # #! Pontifícia Universidade Católica do Paraná - PUCPR........# #! ¹ Curitiba - ² Paraná - ³ Brasil..........................# #************************************************************# #___________ Powered by Projeto i-Doc (Intelligent Document) # ¢############################################################¢ --------------DF0D5A9A7B41DEBBF9243CEC Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I got a similar error when using arithmetic functions:

? - X is some_function(2).
X = 8

? - 5 < some_function(2).
ERROR: Arithmetic: `some_function/1' is not a function

Could somebody tell me why?
 

-- 


£############################################################£
#¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ Emerson Luís dos Santos ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬#
#************************************************************#
#! Mestrando - Laboratório AgP/Siemens.......................#
#! Grupo de Sistemas de Informação...........................#
#! Programa de Pós-Graduação em Informática Aplicada - PPGIA #
#! Pontifícia Universidade Católica do Paraná - PUCPR........#
#! ¹ Curitiba - ² Paraná - ³ Brasil..........................#
#************************************************************#
#___________ Powered by Projeto i-Doc (Intelligent Document) #
¢############################################################¢
  --------------DF0D5A9A7B41DEBBF9243CEC--