July 31, 2012
On 31-Jul-12 00:11, Nick Sabalausky wrote:
> I'm getting a weird error:
>
> Error: function goldie.token.Token.line () is not callable using
> argument types ()
>
> A no-arg function isn't callable with no args?
>
> I'm working on getting a small test case.
>
I suspect constness (or purity, safety, etc.) mismatch at work, as it does spawn this kind of shitty diagnostic at times.
e.g. 'this' pointer is const in a given context thus it can't call non-const function line.

-- 
Dmitry Olshansky

_______________________________________________
dmd-beta mailing list
dmd-beta@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-beta

July 30, 2012
On Mon, 30 Jul 2012 16:11:16 -0400
Nick Sabalausky <bus_dmdbeta@semitwist.com> wrote:

> I'm getting a weird error:
> 
> Error: function goldie.token.Token.line () is not callable using
> argument types ()
> 
> A no-arg function isn't callable with no args?
> 
> I'm working on getting a small test case.

I suspect it could be simplified further by someone who understands DMD/phobos better than me:

[2.060 beta] Strange error calling member func from overridden
Exception::toString()
http://d.puremagic.com/issues/show_bug.cgi?id=8477
_______________________________________________
dmd-beta mailing list
dmd-beta@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-beta

July 31, 2012
On 7/30/12, Walter Bright <walter@digitalmars.com> wrote:
> On 7/30/2012 7:25 AM, Andrej Mitrovic wrote:
>> How come this 64bit ABI is so hard to implement right? I'm just curious.
> It doesn't fit in with the way that dmd generates code. I did not anticipate that structs could be passed in arbitrary combinations of gp and fp registers.

Well whenever it's implemented it's going to be a huge win for my C++
wrapper generator which supports pass-by-value for POD types (unlike
SWIG which requires a pointer and possibly a malloc+free call).
Looking forward to that day. :)
_______________________________________________
dmd-beta mailing list
dmd-beta@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-beta

July 30, 2012
On 7/30/2012 3:45 PM, Andrej Mitrovic wrote:
> On 7/30/12, Walter Bright <walter@digitalmars.com> wrote:
>> On 7/30/2012 7:25 AM, Andrej Mitrovic wrote:
>>> How come this 64bit ABI is so hard to implement right? I'm just curious.
>> It doesn't fit in with the way that dmd generates code. I did not anticipate
>> that structs could be passed in arbitrary combinations of gp and fp
>> registers.
> Well whenever it's implemented it's going to be a huge win for my C++
> wrapper generator which supports pass-by-value for POD types (unlike
> SWIG which requires a pointer and possibly a malloc+free call).
> Looking forward to that day. :)
>

On the plus side, relatively few structs contain mixed float/int members.
_______________________________________________
dmd-beta mailing list
dmd-beta@puremagic.com
http://lists.puremagic.com/mailman/listinfo/dmd-beta

1 2 3
Next ›   Last »