I found a way : the 8th element of "slot-facets". But style, what really means "slot-writablep" ?
Hi, Is there a way to know if a slot doesn't have a "write" accessor? The function "slot-writablep" returns TRUE even with a slot that has "(create-accessor read)". Idem for "slot-direct-accessp".
Thanks. It's perfect like that.
Okay, but the behavior isn't what I expected. With the following Clips code (in a file "templates.clp") : (defmodule MAIN) (deftemplate adresse (slot nom (type STRING)(default "")) (slot pays (type INTEGER)(default 0))) (deffunction init () (bind ?adresse1 (assert (adresse (nom "John")(pays 1))))) and the following Java code : @Test public void readTemplates() throws Exception { final Environment clips = new Environment(); final String clp = "./src/test/resources/templates.clp"; clips.load(ClipsFilePathConverter.getClipsPath(new...
Okay, but the behavior isn't what I expected. With the following Clips code (in a file "templates.clp") : (defmodule MAIN) (deftemplate adresse (slot nom (type STRING)(default "")) (slot pays (type INTEGER)(default 0))) (deffunction init () (bind ?adresse1 (assert (adresse (nom "John")(pays 1))))) and the following Java code : @Test public void readTemplates() throws Exception { final Environment clips = new Environment(); final String clp = "./src/test/resources/templates.clp"; clips.load(ClipsFilePathConverter.getClipsPath(new...
Okay, but the behavior isn't what I expected. With the following Clips code (in a file "templates.clp") : (defmodule MAIN) (deftemplate adresse (slot nom (type STRING)(default "")) (slot pays (type INTEGER)(default 0))) (deffunction init () (bind ?adresse1 (assert (adresse (nom "John")(pays 1))))) and the following Java code : @Test public void readTemplates() throws Exception { final Environment clips = new Environment(); final String clp = "./src/test/resources/templates.clp"; clips.load(ClipsFilePathConverter.getClipsPath(new...
Okay, but the behavior isn't what I expected. With the following Clips code (in a file "templates.clp") : (defmodule MAIN) (deftemplate adresse (slot nom (type STRING)(default "")) (slot pays (type INTEGER)(default 0))) (deffunction init () (bind ?adresse1 (assert (adresse (nom "John")(pays 1))))) and the following Java code : @Test public void readTemplates() throws Exception { final Environment clips = new Environment(); final String clp = "./src/test/resources/templates.clp"; clips.load(ClipsFilePathConverter.getClipsPath(new...
Everything works perfectly. This way I no longer have any differences in the C code. This is a major breakthrough for me! Many thanks.