On 13/02/11 9:32 PM, Sean Eskapp wrote:
== Quote from bearophile (bearophileh...@lycos.com)'s articleSean Eskapp:Is there a nicer way to do this in D, or am I stuck with the same thing?Andrei has recently said no one needs double dispatch (in D) :-) So Andrei willbe interested in your use case.Bye, bearophileThe age-old collision handling problem is how I'm using it.
Use a 2D array of function pointers, with the indices coming from unique IDs on the shapes.