Skip to content

Instantly share code, notes, and snippets.

View thewilsonator's full-sized avatar

Nicholas Wilson thewilsonator

  • Perth, Western Australia
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
// foreach (Assembly b in AppDomain.CurrentDomain.GetAssemblies())
class CLRBuilder
{
src/ldc/attributes.d
@@ -175,3 +175,23 @@ struct target {
+/
immutable weak = _weak();
private struct _weak {}
+
+///Readability aliases for compute
+enum deviceOnly = 0;
+enum hostAndDevice = 1;
+
import std.array;
import std.algorithm;
import std.traits;
import std.string;
class Test
{
inout(int) f() inout { return 10; }
void t()
{