This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: frysk.rt.Frame and frysk.debuginfo.DebugInfo



So we need to come up with a
way to have a single shared DebugInfo.
Factories are a common way of solving this problem. Make the constructor of DebugInfo private and DebugInfo objects can only be created through a DebugInfoFactory which keeps a cache of DebugInfo objects. DebugInfoFactory would take a frame, check the cache and return a DebugInfo object.

This by the way also solves the antlr problem. If there is a DebugInfo object per frame, then antlr objects called from within that DebugInfo object are only concered with that objects Frame.

Sami Wagiaalla


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]