Good I think, nice analogy - the hardware is the same but the software is different. If your 'self' just to be the software, then in that sense when the software has gone, so have you, in that sense you have died. The new software 'isn't you' anymore... in that sense (If I've emphasised that enough!)
If however, you consider yourself to also be the hardware, then 'you' haven't died, 'just' your software has.
As you notice, I also put 'just' in scare quotes - because I think losing your software is no small thing, it's 'what makes you you', which is why this question is here in the first place I think. Because it seems to be quite natural to think of ourselves as just our software - our personality, our mind.
EvF
If however, you consider yourself to also be the hardware, then 'you' haven't died, 'just' your software has.
As you notice, I also put 'just' in scare quotes - because I think losing your software is no small thing, it's 'what makes you you', which is why this question is here in the first place I think. Because it seems to be quite natural to think of ourselves as just our software - our personality, our mind.
EvF