# C/C++ Implementation

**URL:** https://revolt.metaeducation.com/forum/c/development/c-cpp-implementation/62.md

[Latest](https://revolt.metaeducation.com/forum/latest.md) · [Categories](https://revolt.metaeducation.com/forum/categories.md) · [Tags](https://revolt.metaeducation.com/forum/tags.md)

---

## [About the C/C++ Implementation category](https://revolt.metaeducation.com/forum/t/about-the-c-c-implementation-category/2349)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 12:22pm UTC](https://revolt.metaeducation.com/forum/t/about-the-c-c-implementation-category/2349 "2024-12-12T12:22:15Z")

</div>

This category is for discussing issues in the source code for the interpreter itself. e.g. what versions of the C or C++ language spec are supported, or how variables are named, or anything pertinent to that.

---

## [A Ton Of C++ Verification Is Now Factored Out](https://revolt.metaeducation.com/forum/t/a-ton-of-c-verification-is-now-factored-out/2783)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [November 12, 2026, 3:18pm UTC](https://revolt.metaeducation.com/forum/t/a-ton-of-c-verification-is-now-factored-out/2783 "2026-11-12T15:18:05Z")

</div>

It may have appeared not much was going on in Revolt development this year. (There certainly has been a gap due to illness, which will cause more gaps.) But more has happened than meets the eye. A giant chunk of code …

---

## [LIFT\_BYTE (Bedrock, Antiform, Quasi, Quoted...)](https://revolt.metaeducation.com/forum/t/lift-byte-bedrock-antiform-quasi-quoted/2091)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 4\
**Last updated:** [February 28, 2026, 6:13am UTC](https://revolt.metaeducation.com/forum/t/lift-byte-bedrock-antiform-quasi-quoted/2091 "2026-02-28T06:13:51Z")

</div>

The "game" of Rebol is played with cells that are the size of four platform pointers. So on a 32-bit platform a cell is 16 bytes in size, and on a 64-bit platform they are 32 bytes in size. I've illustrated Revolt's sp…

---

## [Over 25 Years of C99: Making a Concession](https://revolt.metaeducation.com/forum/t/over-25-years-of-c99-making-a-concession/1554)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [January 31, 2026, 9:04am UTC](https://revolt.metaeducation.com/forum/t/over-25-years-of-c99-making-a-concession/1554 "2026-01-31T09:04:01Z")

</div>

In the interest of bragging rights, we've tried to say that Revolt builds on C89. Not quite true, since we use // comments instead of just /\* \*/ comments. But a lot of compilers before C99 supported that, and you could…

---

## [Init\_Null(cell) vs. Init\_Nulled(cell)](https://revolt.metaeducation.com/forum/t/init-null-cell-vs-init-nulled-cell/2665)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [January 30, 2026, 9:04am UTC](https://revolt.metaeducation.com/forum/t/init-null-cell-vs-init-nulled-cell/2665 "2026-01-30T09:04:33Z")

</div>

There are two distinct concepts of NULL one has to deal with when reading the sources for the interpreter. One is the C concept of the NULL pointer, and this is a single platform-sized pointer which holds zero. (Pedant…

---

## ["On Building Revolt With C++ Compilers"](https://revolt.metaeducation.com/forum/t/on-building-ren-c-with-c-compilers/1343)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 4\
**Last updated:** [December 29, 2025, 10:54pm UTC](https://revolt.metaeducation.com/forum/t/on-building-ren-c-with-c-compilers/1343 "2025-12-29T22:54:10Z")

</div>

Revolt is a C codebase, but it can optionally also be built with a C++ compiler. Building as C++ adds extra checking at compile-time of the interpreter's implementation. This helps catch bugs that a C compiler could on…

---

## [If R3-Alpha REDUCE were in Revolt Today](https://revolt.metaeducation.com/forum/t/if-r3-alpha-reduce-were-in-ren-c-today/2599)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [December 18, 2025, 11:26pm UTC](https://revolt.metaeducation.com/forum/t/if-r3-alpha-reduce-were-in-ren-c-today/2599 "2025-12-18T23:26:39Z")

</div>

If you look at the R3-Alpha implementation of REDUCE, it has two parts. One part is a spec in a natives list (in %natives.r): reduce: native \[ {Evaluates expressions and returns multiple results.} value /no…

---

## [Using C++'s const keyword to Power CONST](https://revolt.metaeducation.com/forum/t/using-c-s-const-keyword-to-power-const/2501)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [July 4, 2025, 9:14pm UTC](https://revolt.metaeducation.com/forum/t/using-c-s-const-keyword-to-power-const/2501 "2025-07-04T21:14:29Z")

</div>

CONST and MUTABLE have been around for a while now, and I think the chosen balance has worked out rather well. One historical problem point with these mutability features is that there was no compile-time checks to mak…

---

## [Advancements in CastHelper for Hooked Casts](https://revolt.metaeducation.com/forum/t/advancements-in-casthelper-for-hooked-casts/2488)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [June 16, 2025, 12:21am UTC](https://revolt.metaeducation.com/forum/t/advancements-in-casthelper-for-hooked-casts/2488 "2025-06-16T00:21:20Z")

</div>

Progress has been fairly amazing on the debug checks for casts. The "user experience" of writing hooks for the casts used to be very hard-to-read code for a non-C++ programmer...but it's now very simple! Just to give o…

---

## [VSCode Files](https://revolt.metaeducation.com/forum/t/vscode-files/2048)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [June 11, 2025, 2:43pm UTC](https://revolt.metaeducation.com/forum/t/vscode-files/2048 "2025-06-11T14:43:37Z")

</div>

There are some not-checked-in files that are used for building and editing in VSCode. Every now and again, when I wipe out a ren-c clone, this information is lost. Posting it here is as good as anywhere: .vscode/c\_cpp…

---

## [ChatGPT On the C/C++ Fanciness Building As C99](https://revolt.metaeducation.com/forum/t/chatgpt-on-the-c-c-fanciness-building-as-c99/2484)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [June 9, 2025, 2:45pm UTC](https://revolt.metaeducation.com/forum/t/chatgpt-on-the-c-c-fanciness-building-as-c99/2484 "2025-06-09T14:45:17Z")

</div>

I was doing some additional tweaking of the covariance / contravariance to support Init(Slot) being passed anywhere Init(Element/Value) or Sink(Element/Value) would be accepted. What this does is it helps make sure that…

---

## [Bringing Revolt ATTEMPT and UNTIL Into C](https://revolt.metaeducation.com/forum/t/bringing-ren-c-attempt-and-until-into-c/2481)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [June 7, 2025, 11:31am UTC](https://revolt.metaeducation.com/forum/t/bringing-ren-c-attempt-and-until-into-c/2481 "2025-06-07T11:31:47Z")

</div>

The ATTEMPT construct is so useful, I made a version for C And UNTIL as well... (the negated WHILE meaning from Revolt...) Pretty fun... //=//// "ATTEMPT" AND "UNTIL" CONSTRUCTS //////////////////////////////////=// /…

---

## [Changing Strategies on Avoiding Stdio Inclusion](https://revolt.metaeducation.com/forum/t/changing-strategies-on-avoiding-stdio-inclusion/1685)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 1:24pm UTC](https://revolt.metaeducation.com/forum/t/changing-strategies-on-avoiding-stdio-inclusion/1685 "2021-08-26T13:24:52Z")

</div>

Among the battles that Rebol picked, one was to not become dependent on the IO and formatting constructs of libc. So you could build an interpreter without the logic that is behind printf("Hello %s, your Score is %d\\n")…

---

## [Foregoing Unused Label Warnings for Code Organization](https://revolt.metaeducation.com/forum/t/foregoing-unused-label-warnings-for-code-organization/2399)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [April 7, 2025, 8:36pm UTC](https://revolt.metaeducation.com/forum/t/foregoing-unused-label-warnings-for-code-organization/2399 "2025-04-07T20:36:02Z")

</div>

Especially in the stackless model, there's a need for code to be able to be divided into independent sections where the variables in one section don't carry to another... also so that you can goto without crossing initia…

---

## [Setting VSCode Up for Syntax Highlighting](https://revolt.metaeducation.com/forum/t/setting-vscode-up-for-syntax-highlighting/1559)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [December 27, 2024, 7:06am UTC](https://revolt.metaeducation.com/forum/t/setting-vscode-up-for-syntax-highlighting/1559 "2024-12-27T07:06:27Z")

</div>

I've completely abandoned Visual Studio on Windows, and I'm phasing out Sublime Text use...so I'm thus committing to a VSCode-based workflow. I wanted to get very basic syntax highlighting...where SET-WORD!s are bold, a…

---

## [Get\_Xxx\_Flag() vs Has\_Xxx\_Flag() ?](https://revolt.metaeducation.com/forum/t/get-xxx-flag-vs-has-xxx-flag/2358)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [December 22, 2024, 4:29pm UTC](https://revolt.metaeducation.com/forum/t/get-xxx-flag-vs-has-xxx-flag/2358 "2024-12-22T16:29:39Z")

</div>

Kind of a fiddly naming issue, but there are a lot of places where flag-testing helpers are defined, which usually have 4 variants like this: #define Set\_Details\_Flag(p,name) \\ Set\_Flavor\_Flag(DETAILS, ensure(Detail…

---

## [C++ Magic for LVALUE Checking...or Use Functions?](https://revolt.metaeducation.com/forum/t/c-magic-for-lvalue-checking-or-use-functions/2350)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [December 21, 2024, 9:42am UTC](https://revolt.metaeducation.com/forum/t/c-magic-for-lvalue-checking-or-use-functions/2350 "2024-12-21T09:42:41Z")

</div>

If you write traditional C like: BINDING(cellA) = BINDING(cellB); Regardless of what the BINDING() macro expands to, there's no way to do any sort of validation in any build (debug or otherwise). Whatever this becomes…

---

## [Antiform Safety: Covariance and Contravariance](https://revolt.metaeducation.com/forum/t/antiform-safety-covariance-and-contravariance/2330)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [November 11, 2024, 10:00am UTC](https://revolt.metaeducation.com/forum/t/antiform-safety-covariance-and-contravariance/2330 "2024-11-11T10:00:07Z")

</div>

Grafting antiforms onto a C codebase that had no such concept is fraught with disasters. The semantics of unstable antiforms is particularly risky. If you have a test like Is\_Block(cell) that tells you whether a cell h…

---

## [Renaming SPECIFIER =\> CONTEXT ?](https://revolt.metaeducation.com/forum/t/renaming-specifier-context/2168)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 4\
**Last updated:** [September 27, 2024, 7:04pm UTC](https://revolt.metaeducation.com/forum/t/renaming-specifier-context/2168 "2024-09-27T19:04:57Z")

</div>

There was a typeset in historical Rebol that was called ANY-OBJECT!, that tried to pull together anything that had WORD! keys that could be used as a binding target: r3-alpha\>\> help any-object! ANY-OBJECT! is a typeset …

---

## [Compiling ren-c with zig?](https://revolt.metaeducation.com/forum/t/compiling-ren-c-with-zig/2017)

<div class="topic-metadata">

**Author:** [@IngoHohmann](https://revolt.metaeducation.com/forum/u/IngoHohmann)\
**Replies:** 1\
**Last updated:** [June 29, 2023, 8:13am UTC](https://revolt.metaeducation.com/forum/t/compiling-ren-c-with-zig/2017 "2023-06-29T08:13:57Z")

</div>

Has anyone tried to compile ren-c with zig? ( https://www.ziglang.org ). They claim to be able to compile c-code using zig cc , and have an impressive list of cross compilation targets, wasm among them. https://ziglang…

---

## [Should the C sources say \`++foo\` or \`++ foo\` ?](https://revolt.metaeducation.com/forum/t/should-the-c-sources-say-foo-or-foo/1200)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 4\
**Last updated:** [August 29, 2019, 6:04pm UTC](https://revolt.metaeducation.com/forum/t/should-the-c-sources-say-foo-or-foo/1200 "2019-08-29T18:04:55Z")

</div>

Generally speaking, the Revolt sources try to adhere to the same kind of rules that Rebol uses. So instead of writing (x+y) the code uses (x + y), believing this is more legible. It also embraces the idea of macros tha…
