Hi Krasimir,
Great work with the .NET backend!
It wouldn't be easy. Knowing whether a function internal to this module
is primitive is relatively easy. However knowing whether a function in
another module is primitive is harder because the program gets it's
information about external functions from the .hi file and the .hi file
doesn't store whether a function was primitive or not.
It would be possible to add it, but messing about with the hi files
isn't fun (trust me ;-)).
Hope that helps
Tom
Krasimir Angelov wrote:
Cool! Now I am able to compile the entire base package to IL code but
there is still one problem. The byte code backend is using a special
instruction for all primitives. I would like to try an another
approach that will allow to call the primitives directly. For this
purpose I need to now whether a given Id is an Id of a primitive. Is
it currently possible? It is enough if there was any flag in the Info
datatype. Any suggestions?
Krasimir
2006/1/17, Neil Mitchell <[EMAIL PROTECTED]>:
code. Is it possible to remove the duplicated instances as well?
Yep, I removed them already - they were certainly a bug. It should be
in the repo already.
The compiler detects duplicate class declarations (good), but
supresses rename errors with the -redefine flag (bad, fixed now), and
doesn't detect duplicate instance declarations (bad, unfixed).
Thanks
Neil
_______________________________________________
Yhc mailing list
[email protected]
http://haskell.org/mailman/listinfo/yhc
_______________________________________________
Yhc mailing list
[email protected]
http://haskell.org/mailman/listinfo/yhc