Re: what is the assignment expression return value?
by Riad KACED <riad.kaced@[EMAIL PROTECTED]
>
May 14, 2008 at 03:02 PM
Dear vlsidesign,
Why don't you give it a try into your CIW ? you will get the truth by
yourself ;-)
I guess you don't have cadence.
Give a look at the function 'setq' in the following do***ent :
Cadence SKILL Language Reference ($CDSHOME/doc/sklangref.pdf).
As you can see in this do***ent setq is the same as the assignment (=)
operator. It sets a variable to a new value and returns this new value
(or the evaluated result if the assigned new value is an expression).
I think that (=) is internally translated to setq (to be confirmed or
not by the skill experts).
ciw> x = 5
=> 5
ciw> (setq x 5)
=> 5
ciw> a = nil
=> nil
Do mind that nil is a special atom in skill !
Hope it helps !
Riad.