bearophile:
struct Vec(T=float, size_t N=3) {
static assert(N 0);
Sorry. Better to use:
struct Vec(T=float, int N=3) {
static assert(N 0);
From experience using D I have seen that using unsigned types is very unsafe
in the current D language. In Delphi using unsigned types
Moritz Warning wrote:
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX.
The original code by Kenta Cho was ported to use Tango and Derelict.
This made it possible to create binaries for different platforms
and is what this 0.4 release is about.
The code was also put on
Robert Jacques:
struct Vec(T = float,size_t N = 3) {
T[N] _data;
alias _data this;
string toString() { std.conv.return text(_data); }
}
Very nice.
plus functions as array properties which apparently got upgraded at some
point to the extra () isn't needed anymore. ( i.e.
On Tue, 28 Apr 2009 05:06:23 -0400, bearophile bearophileh...@lycos.com
wrote:
bearophile:
struct Vec(T=float, size_t N=3) {
static assert(N 0);
Sorry. Better to use:
struct Vec(T=float, int N=3) {
static assert(N 0);
From experience using D I have seen that using unsigned
On Mon, 27 Apr 2009 16:14:40 -0400, Moritz Warning moritzwarn...@web.de
wrote:
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX.
The original code by Kenta Cho was ported to use Tango and Derelict.
This made it possible to create binaries for different platforms
and is what this
On Tue, 28 Apr 2009 12:44:48 -0400, Steven Schveighoffer wrote:
On Mon, 27 Apr 2009 16:14:40 -0400, Moritz Warning
moritzwarn...@web.de wrote:
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX.
The original code by Kenta Cho was ported to use Tango and Derelict.
This made it
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX.
The original code by Kenta Cho was ported to use Tango and Derelict.
This made it possible to create binaries for different platforms
and is what this 0.4 release is about.
The code was also put on sourceforge.net to make it easier
Moritz Warning:
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX.
The original code by Kenta Cho was ported to use Tango and Derelict.
Lot of fireworks and the code looks clean. Most D games I see have inside a 2D
and/or 3D vector struct, and the code is generally essentially the
On Mon, 27 Apr 2009 17:29:49 -0400, bearophile bearophileh...@lycos.com
wrote:
Moritz Warning:
Titanion is a 2.5D shooter game for Windows, *nix and MacOSX.
The original code by Kenta Cho was ported to use Tango and Derelict.
Lot of fireworks and the code looks clean. Most D games I see