Changes between Version 11 and Version 12 of Commentary/PrimOps


Ignore:
Timestamp:
May 4, 2011 4:54:50 PM (4 years ago)
Author:
norriscm
Comment:

make noun/verb number agree in first sentence

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/PrimOps

    v11 v12  
    44= Primitive Operations (!PrimOps) =
    55
    6 A !PrimOp is a function that cannot be implemented in Haskell, and are provided natively by GHC.  For example, adding two {{{Int#}}} values is provided as the !PrimOp {{{+#}}}, and allocating a new mutable array is the !PrimOp {{{newArray#}}}.
     6!PrimOps are functions that cannot be implemented in Haskell, and are provided natively by GHC.  For example, adding two {{{Int#}}} values is provided as the !PrimOp {{{+#}}}, and allocating a new mutable array is the !PrimOp {{{newArray#}}}.
    77
    88PrimOps are made available to Haskell code through the virtual module {{{GHC.Prim}}}.  This module has no implementation, and its interface never resides on disk: if {{{GHC.Prim}}} is imported, we use a built-in {{{ModIface}}} value - see {{{ghcPrimIface}}} in [[GhcFile(compiler/iface/LoadIface.lhs)]].