Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: Singleton Variables

New Message Reply About this list Date view Thread view Subject view Author view

James Moniz (jmoniz@VT.EDU)
Sun, 1 Apr 2001 10:41:22 -0400


Message-ID:  <200104011450.OAA19348676@smtp5ve.mailsrvcs.net>
Date:         Sun, 1 Apr 2001 10:41:22 -0400
From: James Moniz <jmoniz@VT.EDU>
Subject:      Re: Singleton Variables

Hello,

        These are variables that are not used in you statement and so =
you=20
need to put an underscore before the variable name to make them "Don't=20=

Cares". For example...

        walk_down_street(Street_name, My_Name, Direction) :-=20
walk(Street_name, Direction).

...wont work. In this, My_Name is not used on the right-hand side, so=20
you have to make it...

        walk_down_street(Street_name, _My_Name, Direction)

with the underscore before My_Name. Do that for every variable the=20
program lists.

James

On Sunday, April 1, 2001, at 09:37 AM, Pak Chung wrote:

> I keep getting this warning message when i=A0 run my program, does =
anyone=20
> know what it is?
> =A0



New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>