不幸的是,我认为你们都没有抓住要点(可能解释得很糟糕),我不想要任何全局变量
第一季度:
如果是:
- (defun main
- code
- .......
- .......
- (defun getvalues); This is [color=darkorange]INSIDE [/color]main
- code
- ........
- ........
- );end defun getvalues
- );end defun main
- OR:
- (defun main
- code
- .......
- .......
- );end defun main
- (defun getvalues); This is [color=darkorange]OUTSIDE[/color] main
- code
- ........
- ........
- );end defun getvalues
- Q2:
- Should main be:
- (defun c:main ( / [color=red]an ans1 ans2 ans3 ans4 dcl_id fn fname[/color]); All declared as [color=red]variables[/color]
- or
- (defun c:main ([color=royalblue]ans1 ans2 ans3 ans4[/color] / [color=red]an dcl_id fn fname[/color]); ans1 - ans4 declared as [color=royalblue]arguements[/color], an dcl_id fn fname declared as [color=red]variables[/color]
- And should getvalues be:
- (defun getvalues ()
- or
- (defun getvalues ( [color=royalblue]ans1 ans2 ans3 ans4[/color] / ); all declared as [color=royalblue]arguments
[/颜色]
很抱歉,代码标签按钮似乎对我不起作用&我最终手动将它们放入 |