Розмір відео: 1280 X 720853 X 480640 X 360
Показувати елементи керування програвачем
Автоматичне відтворення
Автоповтор
OpOverload could be interesting for automatic vector swizzling.Like Vec3 a(5,3,1);Vec2 b = a.xy;
Ah yes, indeed opDispatch is a great use case for swizzling.
Tcl (OO) has a similar functionality, called `unknown` . Interesting feature of D; looking forward to your episodes of op*-overloading 😉
@@bsdooby cheers! Very cool to learn about 'unknown' for tcl.
I think when you mixin "name" it should be "this." ~ name, because you only want it to work for member functions, not statics or globals. You could also make it an expression so that it wouldn't be possible to inject extra statements inside "name".
Indeed! I like those improvements 👍👍
OpOverload could be interesting for automatic vector swizzling.
Like
Vec3 a(5,3,1);
Vec2 b = a.xy;
Ah yes, indeed opDispatch is a great use case for swizzling.
Tcl (OO) has a similar functionality, called `unknown` . Interesting feature of D; looking forward to your episodes of op*-overloading 😉
@@bsdooby cheers! Very cool to learn about 'unknown' for tcl.
I think when you mixin "name" it should be "this." ~ name, because you only want it to work for member functions, not statics or globals. You could also make it an expression so that it wouldn't be possible to inject extra statements inside "name".
Indeed! I like those improvements 👍👍