Re: What has happened to clone() in SE 2?

Peter Gummer <[email protected]> Sat, 19 Nov 2005 22:50:38 +1100
Newsgroups gmane.comp.lang.eiffel.smalleiffel
Message-ID <[email protected]>
I wrote:

> Dominique Colnet wrote:
>
>> And twin is frozen just because new object allocation is magic ...
>
> I don't understand why this means it must be frozen.
>
> Couldn't one legitimately redefine it as follows? ...

Sorry, that was a bad example. I meant something like this:

	twin: like Current is
		do
			Result := Precursor
			if Result.source = Void then
				Result.create_source
			end
		end

- Peter Gummer