_is_equivalent
operation;config
);long double
.
Note: To use the old API, require oil.compat
instead of oil
.
oil
.
oil.VERSION
to check OiL's version.oil.tasks
instead of scheduler
.oil.sleep(time)
instead of scheduler.sleep(time)
.oil.pcall(func, ...)
instead of scheduler.pcall(func, ...)
.oil.time()
as an alternative to socket.gettime()
.oil.main(func)
instead of scheduler.new(func, ...); scheduler.run()
.oil.newthread(func, ...)
instead of scheduler.start(func, ...)
.oil.writeto(file, text)
replaces the similar to oil.writeIOR(obj, file)
.oil.readfrom(file)
instead of oil.readIOR(file)
.broker
object, such as:
broker.types
as an improved alternative to oil.getLIR()
.broker:loadidl(idlspec)
instead of oil.loadidl(idlspec)
.broker:loadidlfile(idlfile)
instead of oil.loadidlfile(idlfile)
.broker:setIR(irprx)
instead of oil.getIR(irprx)
.broker:getIR()
instead of oil.getIR()
.broker:getLIR()
instead of oil.getLIR()
.broker:narrow(proxy [, interface])
instead of oil.narrow(proxy [, interface])
.broker:newproxy(strref [, interface])
instead of oil.newproxy(impl [, interface])
.broker:newservant(impl [, key, interface])
instead of oil.newservant(impl [, interface, key])
.broker:tostring(object)
instead of obj:_ior()
.broker:deactivate(obj|key|impl)
improved alternative to obj:_deactivate()
.broker:newencoder()
to create a CDR encoder.broker:newdecoder(string)
to create a CDR decoder.broker:newexcept(body)
as an alternative to oil.Exception(body)
.broker:setexcatch(func, type)
to set exception handlers.broker:run()
instead of oil.run()
.broker:pending()
instead of oil.pending()
.broker:step()
instead of oil.step()
.broker:shutdown()
to shutdown the ORB.broker:setinterceptor(iceptor, side)
to set interceptors.oil.loadidl*
calls;null
and anys containing values of type null
;nil
values used as any
are automatically coded as null
;nil
values can have field n
to define its size;oil.narrow
and proxy:_narrow
now accepts any valid interface specification, i.e. repID, absoulute name, IDL descriptor, or remote IR object;oil.setexcatch(handler [, interface])
. If no interface is provided then the handler is set for all proxies. Previously, this handler could only be set for individual proxies by field __exceptions
;oil.deactivate( [, interface])
that removes an object from the ORB;'\0'
to provide a way for the application to avoid collisions with defined keys;__type
field of the objet meta-table (i.e. its class) to the interface (repID, absolute name, IDL descriptor, or remote IR object) that should be used;__type
of the object implementation itself (in older versions, only the __type
field of the metatable could be used);