EswShadowClass before 1996 history

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

EswShadowClass before 1996 history

Postby jp. » Fri Apr 15, 2011 6:47 am

Hi.
I found that the class EswShadowClass has the following method (in Application Swapper):
Code: Select all
fixForMetaclassFor: aLoadingReplacer
   "Fixes the receiver so that it represents a primaryInstance of a Metaclass. If receiver is
    already a EswShadowClass, receiver has already been fixed, and caches in field %description the
    replacement in the image. Return it."

   ^self getCachedImageReplacement


and the following method (in Application SstSwaperBRMarshaling):
Code: Select all
sstFixUpDuringLoadUsing: replacer
   "Fixes the receiver so that it represents a primaryInstance of a Metaclass. If receiver is
   already a EswShadowClass, receiver has already been fixed, and caches in field %description the
   replacement in the image. Return it."

   ^self getCachedImageReplacement


The first one is from 1996 and the second one from 1997.

Does anybody know why the second one was created, or if it was created before the first one?

Thanks
Juan Pablo Tirelli
jp.
 
Posts: 4
Joined: Wed Dec 10, 2008 2:49 am

Re: EswShadowClass before 1996 history

Postby wembley » Mon Apr 25, 2011 8:27 am

Juan Pablo -

While the methods intersect on EswShadowClass, their other implementations do not intersect (i.e., they are not implemented on the same classes). So, EswShadowClass>>sstFixupDuringLoadUsing: could have forwarded its invocation to EswShadowClass>>fixForMethaclassFor:, but it could not have been replaced by EswShadowClass>>fixForMetaclassFor:.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron