http://forum.dlang.org/post/xpmpakmusudanwuzz...@forum.dlang.org
https://issues.dlang.org/show_bug.cgi?id=9631
On Tue, May 30, 2017 at 1:07 PM, Biotronic via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Tuesday, 30 May 2017 at 10:46:12 UTC, Andrew Edwards wrote:
>
>> On
On Tuesday, 30 May 2017 at 10:46:12 UTC, Andrew Edwards wrote:
On Tuesday, 30 May 2017 at 10:37:58 UTC, Biotronic wrote:
On Tuesday, 30 May 2017 at 10:31:24 UTC, Daniel Kozak wrote:
import std.traits : fqn = fullyQualifiedName;
Darnit. I just googled the template and got a result talking
On Tuesday, 30 May 2017 at 10:37:58 UTC, Biotronic wrote:
On Tuesday, 30 May 2017 at 10:31:24 UTC, Daniel Kozak wrote:
import std.traits : fqn = fullyQualifiedName;
Darnit. I just googled the template and got a result talking
about fqn!T. So yeah - this code:
import std.traits;
On Tuesday, 30 May 2017 at 10:31:24 UTC, Daniel Kozak wrote:
import std.traits : fqn = fullyQualifiedName;
Darnit. I just googled the template and got a result talking
about fqn!T. So yeah - this code:
import std.traits;
pragma(msg, fullyQualifiedName!ImVec2);
pragma(msg,
On Tuesday, 30 May 2017 at 10:20:53 UTC, Andrew Edwards wrote:
Sorry, rough day. Could someone please explain what this means
and how do go about resolving it?
Thanks,
Andrew
If you want to resolve it just do
const label_size = CalcTextSize(...);
but as others have mentioned make sure
import std.traits : fqn = fullyQualifiedName;
On Tue, May 30, 2017 at 12:24 PM, Biotronic via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Tuesday, 30 May 2017 at 10:09:50 UTC, Andrew Edwards wrote:
>
>> What does that even mean?
>>
>> Scenario:
>>
>> bool func(const
On Tuesday, 30 May 2017 at 10:09:50 UTC, Andrew Edwards wrote:
What does that even mean?
Scenario:
bool func(const ImVec2 label_size)
{
return true;
}
void main()
{
//first attempt:
const ImVec2 label_size = CalcTextSize(label.ptr, null,
true);
//Error: cannot implicitly
Sorry, rough day. Could someone please explain what this means
and how do go about resolving it?
Thanks,
Andrew
It seems there are two different ImVec2 types. So ImVec2 is not same as ImVec2
:)
On Tue, May 30, 2017 at 12:09 PM, Andrew Edwards via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> What does that even mean?
>
> Scenario:
>
> bool func(const ImVec2 label_size)
> {
> return
What does that even mean?
Scenario:
bool func(const ImVec2 label_size)
{
return true;
}
void main()
{
//first attempt:
const ImVec2 label_size = CalcTextSize(label.ptr, null, true);
//Error: cannot implicitly convert expression
(CalcTextSize(cast(immutable(char)*)label, null,
10 matches
Mail list logo