Re: [PATCH 1/2] kernel: Make >>#new/>>#new: go through >>#initialize
Holger Hans Peter Freyther <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 01, 2014 at 09:04:53PM +0200, Holger Hans Peter Freyther wrote: Hi, > a.) VMpr_Behavior_basicNewInitialize will lookup_selector (cache) and > notice that Object>>#initialize is an empty method and we can skip the > call. no soemthing else is odd/wrong with the VM. I added an initializer for _gst_initialize_symbol but the code that initializes the symbols doesn't check if it is present or not. This is why _gst_send_message_internal(_gst_initialize_symbol, 0, result, OOP_CLASS(result)); failed as we had two symbols for 'initialize'. This is because initialize will already occur inside the _gst_builtin_selector_names. :} holger