On 13 July 2013 14:47, Stéphane Ducasse <[email protected]> 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.

Reply via email to