opencog-dev team mailing list archive
-
opencog-dev team
-
Mailing list archive
-
Message #00166
Re: OpenCog Shell
2008/5/26 Ben Goertzel <ben@xxxxxxxxxxxx>:
>
> Linas,
>
>> README below ...
>> If anyone plans to use this besides me, let me know.
>
> This looks nice. I'll have more comments later...
>
>> Delete the incoming atom, and all atoms that point at it.
>
> So if we have
>
> InheritanceLink x y
Hmm I suppose I could add some "syntactic sugar" to
convert the above into valid scheme code ... I still
couldn't avoid all the parens, though ...
> and we call
>
> cog-delete x
>
> will this delete y, or just delete x and the InheritanceLink?
(cog-delete x) will spew an error, complaining that x has
incoming links.
(cog-delete-recursive x) will delete both x and the inheritance
link. (but not y)
References