Re: lovely compiler error message - incompatible types

2015-07-02 Thread Justin Whear via Digitalmars-d-learn
On Thu, 02 Jul 2015 17:33:28 +, Laeeth Isharc wrote: FixedDecimal is a fixed decimal point struct that stores values as an int or long and takes number of decimal places as the second compile term argument. It's possible, if not likely I have made a mistake in implementing operator

Re: lovely compiler error message - incompatible types

2015-07-02 Thread anonymous via Digitalmars-d-learn
On Thursday, 2 July 2015 at 17:33:29 UTC, Laeeth Isharc wrote: Any thoughts on what could be leading to the following: ./../../marketdata/source/pricebar.d(397): Error: incompatible types for ((bar.high) + (bar.low)): 'FixedDecimal!(int, 8)' and 'FixedDecimal!(int, 8)'

Re: lovely compiler error message - incompatible types

2015-07-02 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/2/15 1:33 PM, Laeeth Isharc wrote: Hi. It's not easy to reduce, but I will have a go if other options fail. Any thoughts on what could be leading to the following: ../../../marketdata/source/pricebar.d(397): Error: incompatible types for ((bar.high) + (bar.low)): 'FixedDecimal!(int, 8)'

lovely compiler error message - incompatible types

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. It's not easy to reduce, but I will have a go if other options fail. Any thoughts on what could be leading to the following: ./../../marketdata/source/pricebar.d(397): Error: incompatible types for ((bar.high) + (bar.low)): 'FixedDecimal!(int, 8)' and 'FixedDecimal!(int, 8)'

Re: lovely compiler error message - incompatible types

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 2 July 2015 at 18:01:39 UTC, Steven Schveighoffer wrote: On 7/2/15 1:33 PM, Laeeth Isharc wrote: Hi. It's not easy to reduce, but I will have a go if other options fail. Any thoughts on what could be leading to the following: ../../../marketdata/source/pricebar.d(397): Error:

Re: lovely compiler error message - incompatible types

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-learn
Can you post the signature to the operator overload? I have an idea of what it might be, but it's difficult to explain without context. -Steve https://gist.github.com/Laeeth/6251fa731e4cee84bcdc not really a proper implementation. I wanted something as a placeholder today that I could

Re: lovely compiler error message - incompatible types

2015-07-02 Thread Justin Whear via Digitalmars-d-learn
On Thu, 02 Jul 2015 21:03:37 +, Laeeth Isharc wrote: Can you post the signature to the operator overload? I have an idea of what it might be, but it's difficult to explain without context. -Steve https://gist.github.com/Laeeth/6251fa731e4cee84bcdc not really a proper implementation.

Re: lovely compiler error message - incompatible types

2015-07-02 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 2 July 2015 at 21:19:19 UTC, Justin Whear wrote: On Thu, 02 Jul 2015 21:03:37 +, Laeeth Isharc wrote: Can you post the signature to the operator overload? I have an idea of what it might be, but it's difficult to explain without context. -Steve