<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>But do you always do queries?</p>
<p><br>
</p>
<p>For example, Process>>#releaseCriticalSection: just checks if a method has a pragma. Vivide seems to do so sometimes, too.</p>
<p><br>
</p>
<p>Or do I miss an easier protocol?</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="x_Signature">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Tobias Pape <Das.Linux@gmx.de><br>
<b>Gesendet:</b> Freitag, 9. August 2019 22:31:02<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Kernel-ct.1255.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I think the typical way to access Pragmas is the other way round.<br>
<br>
Instead of asking some Compiled Method, rather use the class-side methods of Pragma to _query_ for pragmas.<br>
That way, you would only touch compiled methods if necessary.<br>
<br>
Best regards<br>
        -Tobias<br>
<br>
> On 09.08.2019, at 22:08, commits@source.squeak.org wrote:<br>
> <br>
> A new version of Kernel was added to project The Inbox:<br>
> <a href="http://source.squeak.org/inbox/Kernel-ct.1255.mcz">http://source.squeak.org/inbox/Kernel-ct.1255.mcz</a><br>
> <br>
> ==================== Summary ====================<br>
> <br>
> Name: Kernel-ct.1255<br>
> Author: ct<br>
> Time: 9 August 2019, 10:08:18.927412 pm<br>
> UUID: 2355c96f-9cc4-2f45-aebe-385f6465737e<br>
> Ancestors: Kernel-mt.1254<br>
> <br>
> Propose convenience method for pragma analysis<br>
> <br>
> =============== Diff against Kernel-mt.1254 ===============<br>
> <br>
> Item was added:<br>
> + ----- Method: CompiledMethod>>hasPragma: (in category 'accessing-pragmas & properties') -----<br>
> + hasPragma: aSymbol<br>
> + <br>
> +      ^ (self pragmaAt: aSymbol) notNil!<br>
> <br>
> <br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>