Browse by Tags
All Tags »
Dynamic programming (RSS)
I switched on my Mac for the first time in about three months this evening. I had a hankering to do some Objective-C. This is a language I've tried to master before but without huge amounts of success. However, with my renewed interest in late binding
Read More...
So I thought long and hard about my initial stab at a multimethod implementation for C#. It was a reasonable proof of concept. However, I read some more on the subject of multiple dispatch and the visitor pattern and came up with a few additional ideas.
Read More...
/// <summary> /// Generates multimethods corresponding to the specified method signature. /// </summary> /// <typeparam name="T"> Type of delegate specifying method signature </typeparam> public sealed class MultimethodFactory
Read More...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; internal abstract class MultimethodFactory { private enum ParameterKind { In, Out, Ref } private sealed class Dispatcher { private readonly Delegate _function;
Read More...
I read a couple of interesting articles on the subject of multiple dispatch last night. The first, entitled Visitor Pattern Considered Useless , starts by describing the visitor design pattern with particular emphasis on how it can enable the definition
Read More...