www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Recently added __equal

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
What's the plan for the recent adding __equal overloads at

https://github.com/dlang/druntime/pull/1808/files

Is it only meant for runtime and phobos to be updated? Or does 
user-libraries, such as container libraries, need to be updated 
aswell?
Apr 17 2017
next sibling parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Monday, 17 April 2017 at 19:15:06 UTC, Nordlöw wrote:
 What's the plan for the recent adding __equal overloads at

 https://github.com/dlang/druntime/pull/1808/files

 Is it only meant for runtime and phobos to be updated? Or does 
 user-libraries, such as container libraries, need to be updated 
 aswell?
Well considering that they are templates in druntime, you will need to recompile your code (and any 3rd party code) against the new druntime, with a recent dmd (don't think ldc has the updates yet).
Apr 17 2017
prev sibling parent Jack Stouffer <jack jackstouffer.com> writes:
On Monday, 17 April 2017 at 19:15:06 UTC, Nordlöw wrote:
 What's the plan for the recent adding __equal overloads at

 https://github.com/dlang/druntime/pull/1808/files

 Is it only meant for runtime and phobos to be updated? Or does 
 user-libraries, such as container libraries, need to be updated 
 aswell?
__equal is never really mean to be called directly. It's a druntime template that will be used via inserted calls with the complier front end when array comparisons are used.
Apr 17 2017