无论如何,有没有“探针”的解决方案?一种常见的Lisp方法 [英] Is there anyway to "probe" a method in common lisp

查看:54
本文介绍了无论如何,有没有“探针”的解决方案?一种常见的Lisp方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序允许用户间接创建自己的方法,以后我需要引用这些方法。我想知道是否有一种方法(出于错误检查的目的)测试方法是否存在而不尝试执行它。如果我尝试调用该方法,但该方法不存在,则会导致我的应用程序崩溃。

My application allows the user to create their own methods indirectly and I later need to refer to these methods. I am wondering if there is a way (for error checking purposes) to test if a method exists without trying to execute it. If I just try and call the method and it doesn't exist this will crash my application.

推荐答案

另请参见函数FIND-METHOD: http://www.lispworks.com/documentation/HyperSpec/Body/f_find_m.htm#find-method

Also see the function FIND-METHOD : http://www.lispworks.com/documentation/HyperSpec/Body/f_find_m.htm#find-method

这篇关于无论如何,有没有“探针”的解决方案?一种常见的Lisp方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆