Error: incompatible types for 'shared(SysTime)' and 'shared(SysTime)'

Luke Picardo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 4 13:54:53 PDT 2016


if (curTime - lastMsgTime).total!"seconds") ...

Both are shared Durations.

also when I try to do

lastMsgTime = curTime;

Gives me

Error: non-shared method std.datetime.SysTime.opAssign is not 
callable using a shared object.







More information about the Digitalmars-d-learn mailing list