Home > Archive > Prolog > July 2006 > Codingstyle
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Kim Christiansen 2006-07-28, 7:00 pm |
| Hello,
Is there any standard or recommended way to pass objects to predicates? I
often have predicates which take a list as input, some numeric value and a
object for the "result". Like
dostuff([A|B], N, L) :- ...
Best regards,
Kim
| |
|
| Kim Christiansen wrote:
> Is there any standard or recommended way to pass objects to predicates? I
> often have predicates which take a list as input, some numeric value and a
> object for the "result". Like
>
> dostuff([A|B], N, L) :- ...
What exactly is an "object"?
| |
| Ole Andersen 2006-07-28, 7:00 pm |
| "Lars" <no@spam.please> wrote in message
news:eadn3k$bqn$1@info.service.rug.nl...
> Kim Christiansen wrote:
>
> What exactly is an "object"?
Anything I guess. My book (Bratko) speaks of data objects as atoms, numbers,
variables and structures.
|
|
|
|
|