http://www.byond.com/docs/ref/info.html#/operator/<</ output
I would like to be able to override the function of <<, so that datums or objects may act upon the provided data like a proc.
Example:
/datum/mylog/byond_operator/output(var/data)
filediary << data
world << "[data] added to the log"
Elsewhere you would have something like this:
var/datum/mylog/log = ...
log << "Stuff"
This is just a simple scenario as an example.
ID:2061351
Mar 29 2016, 5:07 am
|
|||||||
| |||||||
Mar 29 2016, 9:30 am
|
|
There's already a thread for operator overloading in this forum.
|
Lummox, could you take a look at output overrides which include a designated control target?
At the moment, text-based overrides are unworkable when you are using the behavior of output() that defines a target control for the output, see: http://www.byond.com/forum/?post=2424564 It seems the overrides for output() are only for the one-argument version of output() and don't take into account the two-argument version that specifies a target window Are we doing something wrong or is this a feature request rather than a bug report? |