A few questions concerning Loom 2.1 to Powerloom 4 translation
Philippe de Rochambeau <[email protected]> Mon, 4 Mar 2013 23:10:42 +0100
| Newsgroups | gmane.comp.ai.powerloom |
|---|---|
| Message-ID | <[email protected]> |
--===============1778492750== Content-Type: multipart/alternative; boundary="Apple-Mail=_85C2ACAA-A733-42AA-83CE-663CDA89E807" --Apple-Mail=_85C2ACAA-A733-42AA-83CE-663CDA89E807 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, I am currently going through the Loom 2.1 tutorial, translating the = examples to PowerLoom 4 as a learning exercise. On page 4 of the tutorial, the author creates an object called ob-1, = thus (create 'ob-1 nil) What is the difference between 'create' and 'defconcept' ? What is the equivalent of the :exactly, :at-least and :is-primitive = parameters shown on page 5 and other pages, in Powerloom 4? Is 'print-facts' the only "modern" equivalent to 'pc' and 'pr'? How would you translate the following example to Powerloom 4? > (defconcept city :is (and location (exactly 1 name) (exactly 1 population) (>=3D population 5000))) Many thanks. Philippe --Apple-Mail=_85C2ACAA-A733-42AA-83CE-663CDA89E807 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; = "><div><br></div><div>Hello,</div><div><br></div><div>I am currently = going through the Loom 2.1 tutorial, translating the examples to = PowerLoom 4 as a learning exercise.</div><div><br></div><div>On page 4 = of the tutorial, the author creates an object called ob-1, = thus</div><div><br></div><div><div style=3D"margin: 0px; ">(create 'ob-1 = nil)</div></div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; ">What is the difference between 'create' and = 'defconcept' ?</div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; ">What is the equivalent of the :exactly, = :at-least and :is-primitive parameters shown on page 5 and other pages, = in Powerloom 4?</div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; ">Is 'print-facts' the only "modern" equivalent to = 'pc' and 'pr'?</div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; ">How would you translate the following example to = Powerloom 4?</div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; "><div style=3D"margin: 0px; "> > = (defconcept city :is</div><div style=3D"margin: 0px; ">(and = location</div><div style=3D"margin: 0px; ">(exactly 1 name)</div><div = style=3D"margin: 0px; ">(exactly 1 population)</div><div style=3D"margin: = 0px; ">(>=3D population 5000)))</div><div style=3D"margin: 0px; = "><br></div><div style=3D"margin: 0px; ">Many thanks.</div><div = style=3D"margin: 0px; "><br></div><div style=3D"margin: 0px; = ">Philippe</div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; "><br></div><div style=3D"margin: 0px; font-size: = 10px; font-family: Courier; "><b><br></b></div></div><div style=3D"margin:= 0px; "><br></div><div style=3D"margin: 0px; "><br></div><div = style=3D"margin: 0px; font-size: 10px; font-family: Courier; = "><b><br></b></div><div style=3D"margin: 0px; font-size: 10px; = font-family: Courier; "><br></div></body></html>= --Apple-Mail=_85C2ACAA-A733-42AA-83CE-663CDA89E807-- --===============1778492750== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ powerloom-forum mailing list [email protected] http://mailman.isi.edu/mailman/listinfo/powerloom-forum --===============1778492750==--