|Title||Format methods can't look at other data|
|Assigned user||Richard Brooksby|
|Description||Format methods are restricted to only looking at the object under consideration, because they run under special circumstances within the MPS (i.e. during a trace, within the shield, etc.). This is inconvenient for common object formats which use wrappers or class objects to encode format information. We solved this in Dylan by putting the wrappers in a special place and preventing them from being protected or moving, but this is inflexible. We should provide a better mechanism.|
|Analysis||The format methods could look at data other than the object provided that they somehow tell the MPS that they are doing so. This would allow the MPS to lower the shield and prevent horrors such as recursive exceptions. The details of this need to be worked out and documented, and an interface designed that will be both convenient and fast for format methods (especially scanners) to use.|
The solution is probably to give client access to ShieldExpose and ShieldCover. We might have to beef up the checking and diagnostics from the shield, because mistakes with these are going to be hard to debug.
See also job003357.
|Evidence||Raw notes from Configura workshop <|
|Created by||Richard Brooksby|
|Created on||2005-03-09 18:18:24|
|Last modified by||Richard Brooksby|
|Last modified on||2013-06-16 06:33:13|
|History||2005-03-09 RB Created.|
2013-05-25 RB Added suggested solution using ShieldExpose and ShieldCover.
2013-06-16 RB Downgraded to "optional" as it is not affecting anyone yet.