<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[wird C++0x ein &#x27;restrict&#x27; keyword haben?]]></title><description><![CDATA[<p>Ein schnelles Googeln ergab nix. Gibts einen Grund warum es (anscheinend?) kein restrict im neuen Standard gibt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/269797/wird-c-0x-ein-restrict-keyword-haben</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 21:16:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/269797.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Jul 2010 11:39:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 11:39:16 GMT]]></title><description><![CDATA[<p>Ein schnelles Googeln ergab nix. Gibts einen Grund warum es (anscheinend?) kein restrict im neuen Standard gibt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919865</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Thu, 01 Jul 2010 11:39:16 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 11:42:19 GMT]]></title><description><![CDATA[<p>Es wird überhaupt keine neuen Schlüsselwörter geben, wegen der Abwärtskompabilität.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919867</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 01 Jul 2010 11:42:19 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 11:47:17 GMT]]></title><description><![CDATA[<p>Jockelx schrieb:</p>
<blockquote>
<p>Es wird überhaupt keine neuen Schlüsselwörter geben, wegen der Abwärtskompabilität.</p>
</blockquote>
<p>Sind constexpr, decltype und nullptr nicht mehr vorhanden?</p>
<p>Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919869</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Thu, 01 Jul 2010 11:47:17 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 11:58:13 GMT]]></title><description><![CDATA[<p>Jockelx schrieb:</p>
<blockquote>
<p>Es wird überhaupt keine neuen Schlüsselwörter geben, wegen der Abwärtskompabilität.</p>
</blockquote>
<p>Aber sonstige neue Sprachmittel wird es trotz der Abwärtskompabilität geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919877</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 01 Jul 2010 11:58:13 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:03:39 GMT]]></title><description><![CDATA[<p>Ups, sry, hab ich Mist geschrieben?<br />
Ich hatte das so in Erinnerung, dass man extra so Keywords wie 'auto' mit neuer Bedeutung belegt, um Abwärtskompatibel zu bleiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919883</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:05:19 GMT]]></title><description><![CDATA[<p>Jockelx schrieb:</p>
<blockquote>
<p>Es wird überhaupt keine neuen Schlüsselwörter geben, wegen der Abwärtskompabilität.</p>
</blockquote>
<p>Die Aussage ist Unsinn, denn auch die Änderung (was sogar noch viel extremer ist) von bestehenden Schlüsselwörtern wird durchgeführt: z.B. auto.</p>
<p>Ja, auto wird von kaum einen Verwendet, aber wehe wenn doch - der wird sich wundern...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919884</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:09:55 GMT]]></title><description><![CDATA[<p>Ich verstehe nicht, inwiefern man bessere Kompatibilität erreicht, indem man zwar keine Schlüsselwörter, aber dennoch neue Sprachmittel einführt. C++0x wird ohnehin nicht mit einem C++98-Compiler kompilierbar sein, umgekehrt jedoch zum grössten Teil (ausser <code>export</code> etc.)</p>
<p>Neue Schlüsselwörter wären z.B. auch <code>static_assert</code> oder <code>noexcept</code> . Soweit ich weiss, ist <code>constexpr</code> rausgefallen, weil es einige Probleme mit momentanen Sprachkonzepten verursacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919887</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:09:55 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:09:58 GMT]]></title><description><![CDATA[<p>asc schrieb:</p>
<blockquote>
<p>Jockelx schrieb:</p>
<blockquote>
<p>Es wird überhaupt keine neuen Schlüsselwörter geben, wegen der Abwärtskompabilität.</p>
</blockquote>
<p>Die Aussage ist Unsinn, denn auch die Änderung (was sogar noch viel extremer ist) von bestehenden Schlüsselwörtern wird durchgeführt: z.B. auto.</p>
<p>Ja, auto wird von kaum einen Verwendet, aber wehe wenn doch - der wird sich wundern...</p>
</blockquote>
<p>was macht auto denn bisher?<br />
iwie bin ich zu doof zum googlen.. ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919888</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:12:26 GMT]]></title><description><![CDATA[<p>Nein, restrict wird es leider nicht geben. Ich weiß auch nicht warum. Vorallem wird es ja bereits von vielen Compilern unterstützt und ist imho ein sehr sinnvolles Feature.</p>
<p>edit: <a href="http://groups.google.com/group/comp.std.c++/browse_thread/thread/bd0d091ff854e6fc/260de565404c79df" rel="nofollow">http://groups.google.com/group/comp.std.c++/browse_thread/thread/bd0d091ff854e6fc/260de565404c79df</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919889</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919889</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:12:26 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:11:31 GMT]]></title><description><![CDATA[<p>unskilled schrieb:</p>
<blockquote>
<p>was macht auto denn bisher?</p>
</blockquote>
<p>Es bezeichnet die automatische Speicherklasse (neben den Speicherklassen <code>extern</code> , <code>static</code> und <code>register</code> ).</p>
<pre><code class="language-cpp">int main()
{
    auto int i;
}
</code></pre>
<p>Nur schreibt es niemand, weil man es gerade so gut weglassen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919891</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:16:31 GMT]]></title><description><![CDATA[<p>Nexus schrieb:</p>
<blockquote>
<p>Ich verstehe nicht, inwiefern man bessere Kompatibilität erreicht, indem man zwar keine Schlüsselwörter, aber dennoch neue Sprachmittel einführt.</p>
</blockquote>
<p>Damit man halt noch alten Code wie</p>
<pre><code class="language-cpp">int restrict = 0;
long newkeyword = 42;
</code></pre>
<p>kompilieren kann.<br />
Aber ich hab meinen Fehler ja längst eingeräumt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919894</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:16:31 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:31:44 GMT]]></title><description><![CDATA[<p>rüdiger schrieb:</p>
<blockquote>
<p>Nein, restrict wird es leider nicht geben. Ich weiß auch nicht warum. Vorallem wird es ja bereits von vielen Compilern unterstützt und ist imho ein sehr sinnvolles Feature.</p>
<p>edit: <a href="http://groups.google.com/group/comp.std.c++/browse_thread/thread/bd0d091ff854e6fc/260de565404c79df" rel="nofollow">http://groups.google.com/group/comp.std.c++/browse_thread/thread/bd0d091ff854e6fc/260de565404c79df</a></p>
</blockquote>
<p>Sehr schade <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919899</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:31:44 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:44:20 GMT]]></title><description><![CDATA[<p>rüdiger schrieb:</p>
<blockquote>
<p>Nein, restrict wird es leider nicht geben. Ich weiß auch nicht warum. Vorallem wird es ja bereits von vielen Compilern unterstützt und ist imho ein sehr sinnvolles Feature.</p>
</blockquote>
<p>Dazu hat der liebe Gott #ifdef erfunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Ansonsten finde ich die Begründung</p>
<blockquote>
<p>Having a feature in the standard that can't be tested for conformance and that has no semantics associated with it (a compiler can ignore restrict without changing the behavior of a valid program) seemed inappropriate.</p>
</blockquote>
<p>etwas albern...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919909</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:44:20 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 12:49:18 GMT]]></title><description><![CDATA[<p>Tim schrieb:</p>
<blockquote>
<blockquote>
<p>Having a feature in the standard that can't be tested for conformance and that has no semantics associated with it (a compiler can ignore restrict without changing the behavior of a valid program) seemed inappropriate.</p>
</blockquote>
</blockquote>
<p>Das trifft doch genauso auf <code>inline</code> zu, nicht wahr?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919913</guid><dc:creator><![CDATA[Nukularfüsiker]]></dc:creator><pubDate>Thu, 01 Jul 2010 12:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 13:00:34 GMT]]></title><description><![CDATA[<p>Es würde mich gar nicht wundern, wenn <code>inline</code> mal &quot;deprecated&quot;* wird; die Compiler sind schließlich ohnehin recht gut in der Lage, die Sinnhaftigkeit einer Inline-Expansion abzuschätzen. Und sicherlich fällt irgendjemandem eine kreative Überladung dafür ein, die etwa so viel mit Inlining zu tun hat wie <code>delete</code> mit Standardkonstruktoren oder <code>enum</code> mit <code>class</code> .</p>
<p>(*: Hat jemand eine brauchbare Idee, wie man &quot;to deprecate&quot; ohne Klimmzüge wie &quot;für veraltet erklären&quot; im Deutschen ausdrücken könnte?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919918</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Thu, 01 Jul 2010 13:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 13:02:44 GMT]]></title><description><![CDATA[<p>Nukularfüsiker schrieb:</p>
<blockquote>
<p>Tim schrieb:</p>
<blockquote>
<blockquote>
<p>Having a feature in the standard that can't be tested for conformance and that has no semantics associated with it (a compiler can ignore restrict without changing the behavior of a valid program) seemed inappropriate.</p>
</blockquote>
</blockquote>
<p>Das trifft doch genauso auf <code>inline</code> zu, nicht wahr?</p>
</blockquote>
<p>Nicht ganz. Inline ermöglicht, Funktionen in Headern zu definieren und dennoch die ODR einzuhalten. Das darf der Compiler auch nicht ignorieren. Er darf allerdings entscheiden, diese Funktionen nicht zu inlinen.</p>
<p>audacia schrieb:</p>
<blockquote>
<p>(*: Hat jemand eine brauchbare Idee, wie man &quot;to deprecate&quot; ohne Klimmzüge wie &quot;für veraltet erklären&quot; im Deutschen ausdrücken könnte?)</p>
</blockquote>
<p>Wörtlich: missbilligen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919919</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 01 Jul 2010 13:02:44 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 13:46:07 GMT]]></title><description><![CDATA[<p>rüdiger schrieb:</p>
<blockquote>
<p>Nein, restrict wird es leider nicht geben. Ich weiß auch nicht warum. Vorallem wird es ja bereits von vielen Compilern unterstützt und ist imho ein sehr sinnvolles Feature.</p>
</blockquote>
<p>Das sehe ich anders. Aber sowas von.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919949</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919949</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Thu, 01 Jul 2010 13:46:07 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 15:24:08 GMT]]></title><description><![CDATA[<p>Für überflüssig halte ich &quot;inline&quot; nicht. Denn die &quot;one definition rule&quot; enthält ja auch Sonderregeln für inline-Funktionen. ZB dürfen diese mehrfach definiert werden, solange das in verschiedenen Übersetzungseinheiten passiert. Das ist natürlich praktisch, da der Compiler es einfacher hat, zu &quot;inlinen&quot;, wenn die Definition bekannt ist. Bei Compilern/Linkern, die keine &quot;link time optimization&quot; durchführen (was praktisch die Regel ist) müsste man sich sonst mit static behelfen, wenn das inline-Schlüsselwort abgeschaft werden würde. In C wär das kein großer Verlust, da es in C keine Sonderregeln für inline gibt. Aber in C++ würde ich es vermissen, inline-Funktionen mit externer Bindung in mehreren ÜEs definieren zu können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919993</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Thu, 01 Jul 2010 15:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 19:15:51 GMT]]></title><description><![CDATA[<p>Interessant wär's doch sicher auch mal, <code>register</code> zu kicken, oder? Auf sowas hat die Welt glaub ich damals schon nicht gewartet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920106</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 01 Jul 2010 19:15:51 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 20:08:34 GMT]]></title><description><![CDATA[<p>LordJaxom schrieb:</p>
<blockquote>
<p>audacia schrieb:</p>
<blockquote>
<p>(*: Hat jemand eine brauchbare Idee, wie man &quot;to deprecate&quot; ohne Klimmzüge wie &quot;für veraltet erklären&quot; im Deutschen ausdrücken könnte?)</p>
</blockquote>
<p>Wörtlich: missbilligen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>Ja, bei LEO kann ich auch selbst nachschlagen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920127</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920127</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Thu, 01 Jul 2010 20:08:34 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 20:52:23 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>rüdiger schrieb:</p>
<blockquote>
<p>Nein, restrict wird es leider nicht geben. Ich weiß auch nicht warum. Vorallem wird es ja bereits von vielen Compilern unterstützt und ist imho ein sehr sinnvolles Feature.</p>
</blockquote>
<p>Das sehe ich anders. Aber sowas von.</p>
</blockquote>
<p>Könntest du das etwas näher ausführen? Wieso erachtest du es nicht als sinnvolles Feature?</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8276">@audacia</a>,<br />
&quot;deprecaten&quot; <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Aber wenn du schon auf LEO schauen gehen kannst, dann schau doch auch im Forum nach. Hat da zum Teil ganz interessante Diskussionen zu solchen Wörtern. Zum Beispiel auch für <a href="http://dict.leo.org/forum/viewWrongentry.php?idThread=46531&amp;idForum=3&amp;lp=ende&amp;lang=de" rel="nofollow">deprecated</a>.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920147</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 01 Jul 2010 20:52:23 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 22:55:03 GMT]]></title><description><![CDATA[<p>Optimizer schrieb:</p>
<blockquote>
<p>Interessant wär's doch sicher auch mal, <code>register</code> zu kicken, oder? Auf sowas hat die Welt glaub ich damals schon nicht gewartet.</p>
</blockquote>
<p>Es wäre auch weniger hart für <code>auto</code> , wenn gleich zwei Speicherklassenschlüsselworte in den Ruhestand träten. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920186</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 01 Jul 2010 22:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Thu, 01 Jul 2010 23:05:59 GMT]]></title><description><![CDATA[<p>Dravere schrieb:</p>
<blockquote>
<p>Könntest du das etwas näher ausführen? Wieso erachtest du es nicht als sinnvolles Feature?</p>
</blockquote>
<p>Weil ich das prinzipiell nur dem Compiler aufhalsen will. Ok, geht nur oft, aber nicht immer. Naja, dann soll es gerne Compilerlokal sein. MS wird vielleicht mit #pragma machen und GCC vielleicht mit __restricted__ oder doch andersrum. Das hat man ja schnell weggemakrot, falls man zufällig für beide entwickelt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920192</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Thu, 01 Jul 2010 23:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Fri, 02 Jul 2010 01:37:43 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Dravere schrieb:</p>
<blockquote>
<p>Könntest du das etwas näher ausführen? Wieso erachtest du es nicht als sinnvolles Feature?</p>
</blockquote>
<p>Weil ich das prinzipiell nur dem Compiler aufhalsen will.</p>
</blockquote>
<p>Was spricht denn überhaupt für das Nutzen des keywords, so fern es es denn geben würde? Mir würde gerade keine Situation einfallen, wo der Compiler das nicht von alleine schon &quot;weiß&quot;.</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920221</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Fri, 02 Jul 2010 01:37:43 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Fri, 02 Jul 2010 11:54:03 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Dravere schrieb:</p>
<blockquote>
<p>Könntest du das etwas näher ausführen? Wieso erachtest du es nicht als sinnvolles Feature?</p>
</blockquote>
<p>Weil ich das prinzipiell nur dem Compiler aufhalsen will. Ok, geht nur oft, aber nicht immer. Naja, dann soll es gerne Compilerlokal sein. MS wird vielleicht mit #pragma machen und GCC vielleicht mit __restricted__ oder doch andersrum. Das hat man ja schnell weggemakrot, falls man zufällig für beide entwickelt.</p>
</blockquote>
<p>Der Compiler kann Aliasing höchstens erkennen, wenn er Funkionen inlined. Das C99 restrict eingeführt hat, kommt ja aus der Praxis. Vorallem weil die Scientificcomputing-Leute sich darüber geärgert haben, dass die Fortran-Compiler teilweise besseren Code generieren konnten (Fortran hat kein Aliasing-Problem). Mittlerweile gehen einige Compiler so weit und generieren Code der Aliasing berücksichtigt und Code der davon ausgeht, dass kein Aliasing auftritt und fügen dann eine Laufzeitüberprüfung ein, welcher Code genommen werden soll. Dies ist natürlich alles andere als optimal, da es den Code aufbläht und man eine Laufzeitüberprüfung braucht. Und warum sollte restrict nicht einfach standardisiert sein? Dann spart man sich die Macrofrickeleien und den Kampf mit kleinen Unterschieden.</p>
<p>unskilled schrieb:</p>
<blockquote>
<p>volkard schrieb:</p>
<blockquote>
<p>Dravere schrieb:</p>
<blockquote>
<p>Könntest du das etwas näher ausführen? Wieso erachtest du es nicht als sinnvolles Feature?</p>
</blockquote>
<p>Weil ich das prinzipiell nur dem Compiler aufhalsen will.</p>
</blockquote>
<p>Was spricht denn überhaupt für das Nutzen des keywords, so fern es es denn geben würde? Mir würde gerade keine Situation einfallen, wo der Compiler das nicht von alleine schon &quot;weiß&quot;.</p>
</blockquote>
<pre><code class="language-cpp">void a(int *p, int *q);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1920402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920402</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Fri, 02 Jul 2010 11:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to wird C++0x ein &#x27;restrict&#x27; keyword haben? on Fri, 02 Jul 2010 12:04:30 GMT]]></title><description><![CDATA[<p>rüdiger schrieb:</p>
<blockquote>
<pre><code class="language-cpp">void a(int *p, int *q);
</code></pre>
</blockquote>
<p>Ausdrücken, daß p!=q?<br />
Kein Problem!</p>
<pre><code class="language-cpp">void a(int *p, int *q)
{
   ASSERT(p!=q);
}
</code></pre>
<p>Hier kommt erstmal nur raus, daß dem GCC das __assume fehlt. Keine Ahnung, warum es fehlt. Ich vermute religiöse Gründe.<br />
Würde restricted auch ausdrücken, da0 p+17 != q+29?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1920414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1920414</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 02 Jul 2010 12:04:30 GMT</pubDate></item></channel></rss>