Skip to content

Instantly share code, notes, and snippets.

@pedro-w
Created June 29, 2020 21:06
Show Gist options
  • Save pedro-w/e5361c34347507664aa018bd2a6db53f to your computer and use it in GitHub Desktop.
Save pedro-w/e5361c34347507664aa018bd2a6db53f to your computer and use it in GitHub Desktop.
Splitting code across modules
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
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;
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());
Library: modmod
Files: library
modmod
more
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