<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<font size="4"><font face="monospace">A model created within a
context can retain a reference to its creating context. (We do
a lot of this sort of thing already, where MethodModel retains a
reference to ClassModel, and where CPBuilder retains a reference
to Options.) So for operations that require a context, a model
derived from a classfile can use the context that created it.<br>
<br>
Methods like parse/build/transform will be moved to the
classfile context object. <br>
</font></font><br>
<div class="moz-cite-prefix">On 5/25/2023 2:02 PM, Adam Sotona
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CY4PR1001MB2150AA92B7B91AC3C5AB9EFC8C469@CY4PR1001MB2150.namprd10.prod.outlook.com">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US">I’m trying to figure out how the context will
be passed down to the models (if it suppose to be detached
from the models).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Do
we plan to enforce another CC argument to all models methods
requiring context?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Or
do we plan to strip down all context-sensitive methods from
all models and attach them to a kind of context-wrappers?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">For
example codeModel.forEach(Classfile.Context.of(…), …) or
Classfile.Context.of(…).forEach(codeModel, …) ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Adam<o:p></o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>