摘要 |
The invention is a new object construct (40) that allows a functional object in a dynamic language to be efficiently used as both a directly-invoked function and as a method in a generic function. To accomplish this use, the new object construct comprises four dis tinct but related contiguous storage regions designated as a header (41), a meth-info field (42), a fn-prolog field (43), and the method b ody (44). When called as a component of a generic function, one entry point is at the method body or at the method-information field. When cal led directly, another entry point exists at the function prolog field.
|