Menu

Difference between <Instance-gen9> and [gen9] ?

Help
2013-06-07
2013-06-07
  • Christine DG

    Christine DG - 2013-06-07

    How to convert

    <Instance-gen9> (the value of ?self)
    

    to
    [gen9] returned by (make-instance) ?

    CLIPS> 
    (find-all-instances 
        ((?y Conv_unit))
        (eq ?y:conversion [gen9])
    )
    ([gen10] [gen11])
    CLIPS>
    (find-all-instances 
        ((?y Conv_unit))
        (eq ?y:conversion <Instance-gen9>)
    )
    ()  ; <---------- EMPTY
    CLIPS> 
    
     
  • Christine DG

    Christine DG - 2013-06-07

    Sorry, I have found the solution.
    I just have to use (instance-name $self) instead of $self which is an Instance-adress.

     

Log in to post a comment.