• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. ~ vs - operator effect on skill query

Stats

  • Replies 1
  • Subscribers 159
  • Views 1137
  • Members are here 0
More Content

~ vs - operator effect on skill query

eDaNoy
eDaNoy over 13 years ago

 Good day everyone..

I have been notified by my leader upon using this ~ on one of my skill program...

 
he ask me the difference on using ~ with -, and i cant give him the right answer,

example: Taking radius of Rounded Square shape

Routine 1                                                            Routine 2

 (foreach item shape                                    vs       (foreach item shape     

       radius=item~>segments~>radius                         radius=car(item->segments)->radius

)                                                                               radList=cons(radius radList)

                                                                                 )

upon validating the above routines:

i could conclude that routine 1 could give me the list of radius that i want without doing the cons function of routine 2.

these are my understanding.

Please help me about this operator...

thank you in advance. just needed it so badly, if i cant convince him, i will surely rewrite my program using what they had used to,  which is this -

please give some sample routine that make this(~) so usefull

thanks again

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 13 years ago

    In the Skill Language User Guide go to section Data Structures -> Access Operators for a description of the differences.

    For Allegro Skill dbids, there is no difference you can use either although most C/C++ programmers use the arrow operator except if you use to Skill program in the Cadence IC world where the squiggle seems to be more prevelant.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information