home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / cad / cadence / 177 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.9 KB

  1. Path: sparky!uunet!idtg!cwp
  2. From: cwp@idtg.UUCP (Chuck Phillips)
  3. Newsgroups: comp.cad.cadence
  4. Subject: Re: edge skill questions
  5. Message-ID: <486@idtg.UUCP>
  6. Date: 21 Jul 92 15:43:55 GMT
  7. References: <lyndon.711657463@angelo>
  8. Organization: Integrated Device Technology, Santa Clara
  9. Lines: 35
  10.  
  11. In article <lyndon.711657463@angelo> lyndon@angelo.amd.com (Lyndon C. Lim) writes:
  12. >
  13. >hi.  i've been struggling with the following piece of skill
  14. >code and was hoping for some pointers/suggestions.
  15. >
  16. >i wanted a generic type checking routine which would use the
  17. >internal type checking ability instead of a large case construct
  18. >and all the predicate functions.
  19. >
  20.  
  21. Perhaps I am missing the intent. As I understand it, the intent is to
  22. check the "type" of a given variable or symbol. If this is true why not
  23. just use the "type()" function? It is listed on page 2-10 (at the bottom
  24. of the table) of the Edge Skill Manual. There is no other documentation
  25. on it - and no examples. If this is what you want try playing with it.
  26.  
  27. aa=list(1 2 3)
  28. bb="1 2 3"
  29.  
  30. type(aa) --> list
  31. type(car(aa) --> fixnum
  32. type(bb) --> string
  33.  
  34.  
  35. ==============================================================================
  36. |Chuck Phillips                                   |                          |
  37. |Integrated Device Technology, Inc                |Just so you know who to   |
  38. |2670 Seeley Ave                                  |contact and that they     |
  39. |San Jose, CA 95134                               |exist - not that I speak  |
  40. |(408)944-2052                                    |for, or on behalf of,     |
  41. |(408)944-2195 (FAX)                              |any of them.              |
  42. |uunet.uu.net!idtg!cwp                            |                          |
  43. |International Cadence User Group-Layout SIG Chair|I speak alone!            |
  44. |Bay Area Cadence User People, BACUP, Chair      |                          |
  45. ==============================================================================
  46.