Closed GoogleCodeExporter closed 9 years ago
Investigation show that active patterns are compiled down to static methods for
all forms and in all contexts with the key distinguishing feature being that
the method name begins and ends with a pipe.
Original comment by stephen....@gmail.com
on 10 Apr 2012 at 11:30
Correction: local active patterns have a mangled name, e.g.
Test 'DecompilationTests.issue 11: local active pattern' failed:
decompile <@ <fun:|LAP|_|@892> 0 1 @> = "(|LAP|_|) 0 1"
"<fun:|LAP|_|@892> 0 1" = "(|LAP|_|) 0 1"
false
C:\Users\Stephen\Documents\Visual Studio 2010\Projects\Unquote\code\UnquoteTests\DecompilationTests.fs(893,0): at DecompilationTests.issue 11: local active pattern()
Original comment by stephen....@gmail.com
on 11 Apr 2012 at 1:00
Marking this issue as fixed, the local active pattern mangled names mentioned
previously is actually a more general issue addressed by by issue 79.
Original comment by stephen....@gmail.com
on 11 Apr 2012 at 1:24
Original comment by stephen....@gmail.com
on 11 Apr 2012 at 8:46
Original issue reported on code.google.com by
stephen....@gmail.com
on 21 Feb 2011 at 3:18