Created
June 29, 2020 21:06
-
-
Save pedro-w/e5361c34347507664aa018bd2a6db53f to your computer and use it in GitHub Desktop.
Splitting code across modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No applicable method, applying {<incremental-generic-function>: table-protocol} to {<simple-object-vector>: {<no-table>}}. | |
No applicable method, applying {function 0x7fed119e7700} to #[{<no-table> 0x55bc735e4840}]. | |
Breaking into debugger. | |
Backtrace: | |
raise + 0x10b | |
invoke-debugger:internal:dylan##1 + 0x49 | |
default-handler:dylan:dylan##1 + 0x2a | |
default-last-handler:common-dylan-internals:common-dylan##0 + 0x104 | |
error:dylan:dylan##0 + 0x54 | |
no-applicable-method-error:dylan-extensions:dylan + 0x4d8 | |
initialize:dylan:dylan##29 + 0xc9 | |
<no-table> constructor:modmod:modmod##0 + 0xd8 | |
make:dylan:dylan##48 + 0x26 | |
main:modmod:modmod + 0x74 | |
_Init_modmod_ + 0x4e | |
_dl_rtld_di_serinfo + 0x5fda | |
_dl_rtld_di_serinfo + 0x60d6 | |
0x7fed11a810ca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module: dylan-user | |
define library modmod | |
use common-dylan; | |
use io; | |
end library modmod; | |
define module modmod | |
use common-dylan; | |
use format-out; | |
end module modmod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module: modmod | |
Synopsis: | |
Author: | |
Copyright: | |
define class <yes-table> (<table>) | |
end; | |
define method table-protocol ( q :: <yes-table>) => (eq :: <function>, ha :: <function>) | |
values(\=, object-hash) | |
end; | |
define function main | |
(name :: <string>, arguments :: <vector>) | |
format-out("Hello, world!\n"); | |
let w = make(<yes-table>); | |
let q = make(<no-table>); | |
exit-application(0); | |
end function main; | |
main(application-name(), application-arguments()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Library: modmod | |
Files: library | |
modmod | |
more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module: modmod | |
define class <no-table> (<table>) | |
end; | |
define method table-protocol ( q :: <no-table>) => (eq :: <function>, ha :: <function>) | |
values(\=, object-hash) | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment