SKILL Q: Howto Get Docstring?

E

Edward

Guest
When you write SKILL in the Lisp syntax you have the option of placing a documentation string. It would be useful if there were a function that could coerce that string.

Example:

(defun MYfunc ()
"This does what you need" ; Docstring!
(printf "Hi there!\n"))

CIW> (describe 'MYfunc)
"This does what you need."

Is there a SKILL function that does something like this?

Edward
 
On 09/18/13 17:42, Edward wrote:
When you write SKILL in the Lisp syntax you have the option of
placing
a documentation string. It would be useful if there were a function that
could coerce that string.
Example:

(defun MYfunc ()
"This does what you need" ; Docstring!
(printf "Hi there!\n"))

CIW> (describe 'MYfunc)
"This does what you need."

Is there a SKILL function that does something like this?

Edward

Edward,

Currently you can't. This was something that changed historically a long
time ago (probably in about 1993). It used to be that the describe
function retrieved the doc string - but the issue is that the SKILL
compiler is not recording the doc string in the right place to be retrieved.

If you want this, contact Cadence customer support to ask for a
duplicate of CCR 969203.

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top