Closed patrickjm closed 10 years ago
Yeah... This is due to the .exist
method. I'm not sure of the usefulness of it for D. It'd basically check if references are or aren't null
. I'll fix this today. It should be noted that this is very much a work-in-progress, but thanks a lot for reporting this, it helps a lot.
:)
Okay... This should be fixed in 0.0.5. I still have a lot of fixes, improvements and features to add before this becomes as useful as I want. Thanks a lot for reporting and I'm sorry I didn't answer you yesterday!
I'm leaving it for you to close this.
Regardless of it being a work in progress, it's been very useful to me thus far, so thanks for writing it (and, more specifically, getting this fixed).
I'm not quite sure why these are happening, but I think it's because I'm checking to see if two struct types are equal.
properties[0].should.equal(Property("test1", "test2"));
spawns:
Error: expression this.value of type Property does not have a boolean value ...dub\packages\pyjamas-0.0.4\source\pyjamas.d(8): Error: template instance pyjamas.Assertion!(Property) error instantiating source\reader.d(38): instantiated from here: should!(Property)
This didn't happen before I upgraded, so I'm assuming the bug was introduced recently.