Edit
Attach
Printable
topic end
<!-- * Set TOPICTITLE = #define private public - A package riddle (19 Aug 2009) --> <style type="text/css"> pre {background-color:#ffeecc;} </style> %STARTINCLUDE% <a name="19"></a> ---+++ [[DefinePrivatePublic20090819PackageRiddle][A package riddle]] (19 Aug 2009) <summary> The other day, I spent some time debugging a surprising issue in Lisp code written for <nop>CoCreate Modeling. Turns out that the problem can be shrunk down to only a few lines, and is actually quite instructive on how Lisp's packages work - an ideal candidate for this blog! </summary> So here is the innocent-looking code: <pre> (defun test() (test_dialog)) (in-package :clausbrod.de) (use-package :oli) (sd-defdialog 'test_dialog :ok-action '(display "test_dialog")) </pre> <img src="%ATTACHURLPATH%/packageriddle.png" alt="packageriddle.png" width="411" height="36" style="float:right;" /> Copy/paste this code into a file called =test.lsp=, then load the [[%ATTACHURL%/test.lsp][file]] into a fresh instance of <nop>CoCreate Modeling. Run the =test= function by entering =(test)= in the user input line. Can you guess what happens now? Can you explain it? [[DefinePrivatePublic20090820PackageRiddlePart2][To be continued...]] --- %STOPINCLUDE% %COMMENT{type="below" nonotify="on"}% ---
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
Refresh
|
More topic actions
Revisions: | r1.3 |
>
|
r1.2
|
>
|
r1.1
|
Total page history
|
Backlinks
You are here:
Blog
>
DefinePrivatePublic20090819PackageRiddle
r1.3 - 22 Aug 2009 - 08:58 -
ClausBrod
to top
Blog
This site
2017
:
12
-
11
-
10
2016
:
10
-
7
-
3
2015
:
11
-
10
-
9
-
4
-
1
2014
:
5
2013
:
9
-
8
-
7
-
6
-
5
2012
:
2
-
10
2011
:
1
-
8
-
9
-
10
-
12
2010
:
11
-
10
-
9
-
4
2009
:
11
-
9
-
8
-
7
-
6
-
5
-
4
-
3
2008
:
5
-
4
-
3
-
1
2007:
12
-
8
-
7
-
6
-
5
-
4
-
3
-
1
2006:
4
-
3
-
2
-
1
2005:
12
-
6
-
5
-
4
2004:
12
-
11
-
10
C++
CoCreate Modeling
COM & .NET
Java
Mac
Lisp
OpenSource
Scripting
Windows
Stuff
Changes
Index
Search
Maintenance
Impressum
Datenschutzerklärung
Home
Webs
Atari
Blog
Claus
CoCreateModeling
Klassentreffen
Main
Sandbox
Sommelier
TWiki
Xplm
Jump:
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback