December 13th, 2013, 5:56 pm
QuoteI was just thinking that if you would write a wrapper for another random engine then the code would be 99% identical, apart from the name. Maybe you can use MACRO's? I C#, I can _generate_ code at run-time using .NET. Reflection. Just like (btw you can see I can make it a generic class)using System;public class Class1{ public static void Main() { GaudeamusIgitur<int, int> g = new GaudeamusIgitur<int, int>(); g.key = 1; g.value = 42; g.Salve(); }}where the code to generate this class is (cool yes?)
Last edited by
Cuchulainn on December 12th, 2013, 11:00 pm, edited 1 time in total.