c_alikes

Operators, commands and functions more c-like, plus a few other utilities

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install c_alikes
choosenim install c_alikes
git clone https://github.com/ReneSac/c_alikes

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
c_alikes - - - - - - -

Source

Repository https://github.com/ReneSac/c_alikes
Homepage https://github.com/ReneSac/c_alikes
Documentation View Documentation
Registry Source nimble_official

README

Collection of aliases and procedures that make easier to write C in nim. ;)

Contains many aliases for the nim's keyword bitwise operators.

Nim's keyword operators don't support nim's strong-spaces feature, nor have an assigment operator version (like +=). The reuse of the logical keywords for and, or and not for the bitwise version also hinders readability somewhat and have arguably the wrong precedence. This module attempts to fix all that.

It also includes pointer arithmetic, some useful bitops (most were removed as we got the very nice bitops module in nim standard library!), and some misc aliases for shallowCopy.