Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
cetio committed Feb 18, 2024
1 parent 7e61f38 commit 043785d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
1 change: 1 addition & 0 deletions source/avocet/package.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// Avocet auxillary assembly/disassembly library
module avocet;

// TODO: make pure
Expand Down
1 change: 0 additions & 1 deletion source/tern/algorithm/package.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module tern.algorithm;

public import tern.algorithm.enumerable;
public import tern.algorithm.iteration;
public import tern.algorithm.lazy_filter;
public import tern.algorithm.lazy_map;
Expand Down
2 changes: 1 addition & 1 deletion source/tern/package.d
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// The Tern library
/// Tern core library
module tern;

public import tern.algorithm;
Expand Down
2 changes: 1 addition & 1 deletion source/tern/typecons/atomic.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Wrappers for atomics and specific side-channel attack mitigation
module tern.typecons.channel;
module tern.typecons.atomic;

public import core.atomic;
import core.sync.mutex;
Expand Down
22 changes: 21 additions & 1 deletion source/tern/typecons/variant.d
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
/// Constructions for `SumType`, `UnionType`, and `VadType` (variadic)
/// Constructions for `Box`, `SumType`, `UnionType`, and `VadType` (variadic)
module tern.typecons.variant;

import std.traits;
import std.conv;
import tern.codegen;
import tern.meta;

private template supportedTypes()
{
alias coreTypes = AliasSeq!(ubyte, byte, ushort, short, uint, int, ulong, long, bool, float, double, string, char, wstring, wchar, dstring, dchar,
ubyte[], byte[], ushort[], short[], uint[], int[], ulong[], long[], float[], double[], string[], wstring[], dstring[]);
alias supportedTypes = AliasSeq!();

static foreach (i; 1..256)
{
static foreach (T; coreTypes)
supportedTypes = AliasSeq!(supportedTypes, mixin(fullyQualifiedName!T~"["~i.to!string~"]"));
}
}

public struct Box
{
private:
final:

}

// TODO: Fix
/* public struct SumType(T...)
{
Expand Down

0 comments on commit 043785d

Please sign in to comment.