• 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. Custom IC SKILL
  3. How to get the slot names inside a method?

Stats

  • Replies 1
  • Subscribers 142
  • Views 1341
  • Members are here 0

How to get the slot names inside a method?

kkdesbois
kkdesbois 5 months ago

Hello,

Is there a way to get the slot names inside a method?

Ex.

(defclass myClass () ( (slot1 @initform ....)
                                    (slot2 @initform ....)
                                    (slot3 @initform ....)
                                    (slot4 @initform ....)
                                  ))

(defmethod myMethod ( (self myClass) )
  mycode....
  (foreach x self->? (println x))
)

and the return of this method is :
slot1
slot2
slot3
slot4

Is there a way to do it without using ->? ?

Laurent.

  • Sign in to reply
  • Cancel
  • Andrew Beckett
    Andrew Beckett 5 months ago

    Laurent,

    That's the only public way to do it.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel

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