Home > Community > Forums > Custom IC SKILL > SKILL versus SKILL++

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 SKILL versus SKILL++ 

Last post Tue, Mar 24 2009 7:26 AM by Andrew Beckett. 1 replies.
Started by gsimard 24 Mar 2009 06:07 AM. Topic has 1 replies and 1362 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, Mar 24 2009 6:07 AM

    • gsimard
    • Top 500 Contributor
    • Joined on Fri, Mar 20 2009
    • Posts 21
    • Points 465
    SKILL versus SKILL++ Reply
    Hello everyone,

    I am trying to use functions reserved to SKILL++ in my code but apparently it's not enabled on my installation. As an example, when I try this in the CIW:

    (do ((x 0 x+1)) (print x))
    Message: *Error* do: not supported in SKILL - do(((x 0 (x + 1))) print(x))

    Quite clearly it's not expecting SKILL++ there. I could do without a do loop, but I'd really like to have access to what SKILL++ is about, that is, closures. For example:

    (let ((x 0))
    (defun total (y)
    (setq x (plus x y))))

    (total 3)

    Message: *Error* eval: unbound variable - x

    While in SKILL++ I would expect the result to be 3, x being a local state to the function total.

    Is there a way to enable SKILL++ evaluation ?


    Thank you,
    Guillaume
    • Post Points: 20
  • Tue, Mar 24 2009 7:26 AM

    Re: SKILL versus SKILL++ Reply

    In the CIW, if you type first:

    toplevel('ils)

    Then you can enter SKILL++ code. You can enter resume() to return to the SKILL toplevel.

    Or if the source is in a file, give it a suffix ".ils". Please read the chapters on SKILL++ in the SKILL Language User Guide - it's covered there - and in particular talks about calling SKILL from SKILL++ and vice versa, and how variables are shared between the two environments.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by gsimard at 24 Mar 2009 06:07 AM. Topic has 1 replies.