2 simple questions about SKILL language

Discussion in 'Cadence' started by chen_zhitao, Nov 15, 2007.

  1. chen_zhitao

    chen_zhitao Guest

    <1> Unload and undefine
    After loading a script, how to unload it without exiting icfb?
    After defining a variable, how to undefine it without exiting icfb?

    <2> Setting cursor
    I have a window(2) opening, which is a schematic editor window.
    hiSetCursor(window(2) `hicHourglass)
    *Error* hiSetCursor: argument #2 should be an integer (type
    template = "wx") - hicHourglass
    hiSetCursor(window(2) 0)
    hiSetCursor(window(2) 2)
    hiSetCursor(window(2) 4)
    But the cursor shape in this window never changes after I executed
    the command each time.
    What's the reason? How to use this function?

    Thanks.
     
    chen_zhitao, Nov 15, 2007
    #1
  2. chen_zhitao

    S. Badel Guest

    Unloading a script is not possible as far as I know.

    Undefining a variable is done by assigning it the value 'unbound

    x = 'unbound

    Undefining a function is done by setting its function slot to nil

    putd('x nil)
    Probably the application is changing it back. Why do you want to do this anyway ?


    Stéphane
     
    S. Badel, Nov 15, 2007
    #2
  3. chen_zhitao

    Guest Guest

    You cannot "unload" a script. You can change it and load it again, though.

    I do not know whether a global symbol can be "undefined" once it has been
    defined. You can always set the value to nil, though.
    hicHourglass is a global variable used as a constant, not a symbol. So it
    should be:

    hiSetCursor(window(2) hicHourglass)

    The "c" in hic means no-one should modify it, else things won't work right.

    The value of hicHourglass is 14.

    -Pete Zakel
    ()

    "What is a magician but a practising theorist?"

    -Obi-Wan Kenobi
     
    Guest, Nov 16, 2007
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.