The output will be bad because of Windows specific behavior related to
not outputting as UTF-16.
This will print all the characters in the block "Superscripts and
Subscripts".
The Unicode database is very out of date (just waiting for merge for
update), but should be ok for this example.
`
```
dstring s = "";
for (dchar i='ₐ'; i < 'ₜ'; i++)
s ~= i;
writeln(s);
```
Doesn't work. The result I get is shit:
ₐₑₒₓₔₕₖₗₘₙₚₛ
You could potentially skip running the `@constructValue` lambdas
in the ctor via `if (__ctfe)`, if skipping this extra init is
acceptable for CTFE instances.
On Friday, 2 December 2022 at 04:14:37 UTC, kinke wrote:
[...]
Such an instance should be CTFE-constructible, and the valid
instance would feature the expected value for the `validUntil`
field. [...]
Oh well, that time-sensitive example clearly isn't CTFE-able. :D
- If that's the primary use
On Friday, 2 December 2022 at 00:24:44 UTC, WebFreak001 wrote:
I want to use the static initializers (when used with an UDA)
as default values inside my SQL database.
See
https://github.com/rorm-orm/dorm/blob/a86c7856e71bbc18cd50a7a6f701c325a4746518/source/dorm/declarative/conversion.d#L959
On 12/1/22 5:50 PM, jwatson-CO-edu wrote:
On Thursday, 1 December 2022 at 22:16:30 UTC, jwatson-CO-edu wrote:
That was the trick, [inside the loop it detects the
gamepad](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/04_jsInput/source/app.d#L35). No other changes needed.
I ha
On Thursday, 1 December 2022 at 23:02:31 UTC, kinke wrote:
On Thursday, 1 December 2022 at 08:09:05 UTC, WebFreak001 wrote:
[...]
AFAIK, there is no way. Unlike a struct's init symbol, a class'
one doesn't necessarily represent a valid instance state - it's
just the raw payload before invoking
On Thursday, 1 December 2022 at 01:17:16 UTC, Steven
Schveighoffer wrote:
On 11/30/22 7:56 PM, jwatson-CO-edu wrote:
uint MAX_LIGHTS = 4;
The rlights header file is not part of the raylib library, but
is in the examples directory, you will need to port it. It's
not very big, you probably can
On Thursday, 1 December 2022 at 08:09:05 UTC, WebFreak001 wrote:
I've got this class definition:
```d
class X
{
this()
{
assert(false);
}
int x = 3;
}
```
due to internal reasons the constructor would fail at compile
time, so I put in an assert(false) here, and I can't
On Thursday, 1 December 2022 at 22:16:30 UTC, jwatson-CO-edu
wrote:
That was the trick, [inside the loop it detects the
gamepad](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/04_jsInput/source/app.d#L35). No other changes needed.
I have a new problem:
Raylib-d [can see all 6 g
On Thursday, 1 December 2022 at 15:35:37 UTC, Steven
Schveighoffer wrote:
On 12/1/22 3:24 AM, bauss wrote:
But probably not on every frame, have a delay between checks.
It's not anything controllable by the user. The library does
the check every frame regardless of whether you use it or not
On Thursday, 1 December 2022 at 21:34:41 UTC, Steven
Schveighoffer wrote:
On 12/1/22 11:10 AM, ryuukk_ wrote:
Can you try with this page:
https://www.raylib.com/examples/core/loader.html?name=core_input_gamepad
Does it detect your gamepad?
It should work because the `IsGamepadAvailable` func
On 12/1/22 11:10 AM, ryuukk_ wrote:
Can you try with this page:
https://www.raylib.com/examples/core/loader.html?name=core_input_gamepad
Does it detect your gamepad?
It should work because the `IsGamepadAvailable` function call is inside
the loop. That's most certainly the problem with the O
On Thursday, 1 December 2022 at 01:49:09 UTC, jwatson-CO-edu
wrote:
On Thursday, 1 December 2022 at 01:12:17 UTC, Steven
Schveighoffer wrote:
On 11/30/22 7:28 PM, jwatson-CO-edu wrote:
On Wednesday, 30 November 2022 at 23:18:33 UTC, ryuukk_ wrote:
On Wednesday, 30 November 2022 at 22:46:52 UTC,
On 12/1/22 3:24 AM, bauss wrote:
But probably not on every frame, have a delay between checks.
It's not anything controllable by the user. The library does the check
every frame regardless of whether you use it or not.
When you call the raylib function, you are not actually querying the
d
On Thursday, 1 December 2022 at 02:06:43 UTC, Steven
Schveighoffer wrote:
On 11/30/22 8:49 PM, jwatson-CO-edu wrote:
Yes, following your instructions I have raylib 4.2.0 and
raylib-d 4.2.4 in the project directory. I am now using the
latest version of raylib-d, but this did not resolve the
I've got this class definition:
```d
class X
{
this()
{
assert(false);
}
int x = 3;
}
```
due to internal reasons the constructor would fail at compile
time, so I put in an assert(false) here, and I can't add or
change any methods in X.
How do I get `3` if I have `X`
17 matches
Mail list logo