#7 Crippled syntax for BuildFunction

closed
5
2004-10-20
2004-10-03
No

According to both code and documentation,
BuildFunction requires a second parameter containing
the "text" of the function itself. It might be cleaner for
reading if this was split in two different parameters, one
for the list of arguments and the other for the function
body.

Discussion

  • Francesco Garosi

    Logged In: YES
    user_id=328337

    BuildFunction has been modified in order to receive two
    arguments for the function body: the first (args) is the list of
    function arguments - which can be either a string or a
    sequence, and the second is the actual function body.
    Neither of the parameters has to be surrounded in brackets,
    thus making CLIPS function declaration more clear.

    Users should be warned that this can lead to code breakage
    with PyCLIPS versions prior to 1.0_05 (next release).

    This RFE will be closed upon next file release.

     
  • Francesco Garosi

    Logged In: YES
    user_id=328337

    The actual implementation will require that the function body
    be surrounded by brackets (not the argument list, which can
    be also a sequence) in order to be more coherent with other
    declarative functions.

     
  • Francesco Garosi

    Logged In: YES
    user_id=328337

    The syntax has changed as of version 1.0_05.

     
  • Francesco Garosi

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks