Help understanding no-runtime error?

Manu turkeyman at gmail.com
Wed Nov 13 06:49:40 UTC 2024


I'm building a majorly stripped back environment, but not quite better-c.
I removed druntime and building with an empty object.d, slowly filling it
to understand the minimum set of things I need.

I have encountered a weird error though:

  enum x = "X" == "y";

  error : incompatible types for array comparison: `string` and `string`

Most things seem to use __cmp, and certainly "X".__cmp("Y") does compile
and work.
Does anyone know why this error message? What is the compiler doing
internally that leads to such an error message? Something's obviously
missing, but I don't know what...?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20241113/5a35af69/attachment.htm>


More information about the Digitalmars-d mailing list