July 13, 2013
5:23 p.m.
On 13 July 2013 14:47, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
what are the pros and cons?
pros - you can pass is as parameter everywhere it expects a pointer cons - it will slow down all calls with pointer type because of extra check, even if you don't using it (and in most cases you don't) i think best way is to introduce it as option.
Stef
the only question, which remains , shall it use strict type checking (so you have to change the signature), or allow to use such objects with any signatures which takes a pointer to something, e.g. extend generic NBExternalType>>pushAsPointer: to additionally check if incoming argument is instance of NBObjectFieldAddress class.
-- Best regards, Igor Stasenko.