Files

1 line
3.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="260" viewBox="0 0 720 260" role="img" aria-labelledby="title desc"><title id="title">CTFE: вызов превращается в константу</title><desc id="desc">Компилятор выполняет square(3), когда значение требуется для enum, и получает константу n, равную 9.</desc><defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0 0 8 4 0 8" fill="none" stroke="#b64d26" stroke-width="1.6"/></marker></defs><rect width="720" height="260" fill="#fbf8f1"/><g font-family="Arial,Helvetica,sans-serif" fill="#242824"><text x="24" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="start">ВЫЗОВ</text><text x="360" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="middle">КОМПИЛЯТОР</text><text x="520" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="start">КОНСТАНТА</text><text x="24" y="133" font-size="32" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">square(3)</text><path d="M217 123 H270" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><rect x="292" y="73" width="136" height="104" rx="6" fill="#242824" stroke="#242824" stroke-width="2"/><path d="M309 61 V73 M309 177 V189" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M340 61 V73 M340 177 V189" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M371 61 V73 M371 177 V189" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M402 61 V73 M402 177 V189" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M280 89 H292 M428 89 H440" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M280 113 H292 M428 113 H440" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M280 137 H292 M428 137 H440" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M280 161 H292 M428 161 H440" fill="none" stroke="#242824" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="360" y="118" font-size="30" font-weight="bold" fill="#fbf8f1" text-anchor="middle">CTFE</text><text x="360" y="152" font-size="25" font-weight="normal" fill="#e7c9a9" text-anchor="middle">3 × 3</text><path d="M453 123 H502" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><text x="520" y="112" font-size="27" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">enum</text><text x="520" y="152" font-size="35" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">n = 9;</text><path d="M24 214 H696" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="360" y="245" font-size="23" font-weight="normal" fill="#676961" text-anchor="middle">Значение известно до запуска программы</text></g></svg>