Skip to content
View jordan4ibanez's full-sized avatar

Block or report jordan4ibanez

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
jordan4ibanez/README.md

Welcome to my profile:


Hello there. I'm Jordan.

Is this my job? No. Just a hobby at the moment. Maybe it will be someday. Or, at least I hope it will be.

I do have: https://www.patreon.com/jordan4ibanez


Discord:


My discord is here: https://discord.gg/D95q7BHUE4


Click here for the Fortran section of my profile.


D Cheat Sheet


Things that are evaluated at compile time:

From: schveiguy


The following expressions are evaluated at compile time: Initializers for static, module-level, or __gshared variables

  1. value of an enum.
  2. A template value argument.
  3. default initializers for member fields.
  4. And that's it. Everything else is runtime.

Initialize an array with a value

From: Me :D


const x = (new int[30_000])[] = 1;

C++ style explicit operator bool for type

From: Kapendev


bool opCast(T: bool)() const {
    return isSome;
}

Unimplemented Operator

From: ShapeshiftingLizard


bool opCast(T)() const {
    static if (is(T == bool)) {
        return count != -1;
    } else static assert(0, "Not implemented.");
}

Value template class/struct

From: Me :D


class cool(int MY_COOL_VALUE) {
    immutable int aCoolValue = MY_COOL_VALUE;
}

void main() {
    auto i = new cool!23();
    writeln(i.aCoolValue);
}

Run tests in release mode

From: 0xEAB


DFLAGS="-release -unittest" dub test

Popular repositories Loading

  1. minetest-rust minetest-rust Public archive

    Unofficial minetest rebuild in rust from the ground up.

    Rust 36 6

  2. Open-Terrarium Open-Terrarium Public

    A 2D sand box block based game

    Lua 26 4

  3. tinyphysicsengine tinyphysicsengine Public

    ultra tiny suckless physics engine

    C 16 2

  4. open_ai open_ai Public

    A framework for Minetest to create mobs. This project is aimed to create the best mobs possible, yet not slow down the game. Feel free to contribute!

    Logos 14 3

  5. crafter crafter Public

    This is my original game, given more love.

    TypeScript 12

  6. formine formine Public

    A voxel game, written in Fortran, LuaJIT, and C.

    Fortran 12