Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 82

mozart-1.4.0-1mdv2010.0.i586.rpm

functor
import
   Celloid(new:New is:Is access:Access assign:Assign)
   at 'celloid.so{native}'
   Error(registerFormatter)
export
   New Is Access Assign
define
   fun {CelloidFormatter E}
      T = 'Celloid Error'
   in
      case E of celloid(nonLocal C V) then
         error(kind: T
               msg: 'Attempted assign on non local celloid'
               items: [hint(l:'Operation' m:'Celloid.assign')
                       hint(l:'Celloid'   m:oz(C))
                       hint(l:'Value'     m:oz(V))])
      else
         error(kind: T
               items: [line(oz(E))])
      end
   end
   {Error.registerFormatter celloid CelloidFormatter}
end