Up to now I was able to compile just "First Triangle example"
https://www.dropbox.com/sh/myem3g69qjyo58v/AABZuvwuRDpnskhEC4AAK5AVa?dl=
Why not start with that, then, and expand it until it has
everything you need?
If it helps, the basic gl startup code for my engine is at
http://ix.io/1Z2X/d a
Hi All,
Request your help in converting a PHP code to D equivalent code
PHP Code:
class avmtest {
private $con;
function __construct() {
global $config;
$this->con = new mysqli(test.srv.com:3910,
testusr, #, test);
if($this-
On Thursday, 17 October 2019 at 20:21:39 UTC, Andre Pany wrote:
On Thursday, 17 October 2019 at 19:05:44 UTC, Vino wrote:
[...]
Hi,
I assume you are using this mysql package
http://code.dlang.org/packages/mysql-native.
(If not please check wheter the package you are using is vibe-d
complian
On Friday, 18 October 2019 at 06:11:37 UTC, Ferhat Kurtulmuş
wrote:
On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote:
Already >1 year I consider to move from C++ to Dlang or to
Rust in my hobby game development (mostly based on physical
simulations
https://github.com/ProkopHapal
On Friday, 18 October 2019 at 05:52:19 UTC, Prokop Hapala wrote:
Already >1 year I consider to move from C++ to Dlang or to Rust
in my hobby game development (mostly based on physical
simulations
https://github.com/ProkopHapala/SimpleSimulationEngine). I
probably prefer Dlang because it compil
Already >1 year I consider to move from C++ to Dlang or to Rust
in my hobby game development (mostly based on physical
simulations
https://github.com/ProkopHapala/SimpleSimulationEngine). I
probably prefer Dlang because it compiles much faster, and I can
copy&paste C/C++ code to it without muc
On Thursday, 17 October 2019 at 12:40:33 UTC, Adam D. Ruppe wrote:
On Thursday, 17 October 2019 at 12:19:03 UTC, Vinay Sajip wrote:
Are arrays and objects part of a unified type system?
No, they are separate. You can define a class that contains an
array, but it doesn't work like that automat
On Thursday, 17 October 2019 at 21:32:34 UTC, WhatMeWorry wrote:
DUB version 1.11.0, built on Oct 6 2018
`dub add` got added at the end of 2018 IIRC, so you need to
upgrade Dub.
Really stupid question here, but when I try to run the same
command I get:
C:\Users\whatmeworry>dub add arsd-official
Unknown command: add
USAGE: dub [--version] [] [] [--
[]]
. . .
DUB version 1.11.0, built on Oct 6 2018
I thought about dub init, but that still doesn't give me an 'ad
On Thursday, 17 October 2019 at 14:45:24 UTC, Mil58 wrote:
Hi all...
Does exist (or not?) a way to create array with several types
(as in Python)
You actually have at least three options for handling mixed data:
```
// Three ways to handle mixed data
import std.stdio;
import std.typecons;
im
On Thursday, 17 October 2019 at 20:17:53 UTC, Greatsam4sure wrote:
the same error
That was meant for Adam to put in the dub package file of arsd,
in your project it won't affect the compilation of the
dependency. (Though you can still try adding it in your local
download of arsd to quickly
On Thursday, 17 October 2019 at 20:17:53 UTC, Greatsam4sure wrote:
arsd-official:cgi 4.0.3: building configuration
oops i forgot to push the new tag to git. It should update in a
little while now.
On Thursday, 17 October 2019 at 19:05:44 UTC, Vino wrote:
Hi All,
Request your help on the below code and error
Error:
source\app.d(25,15): Error: none of the overloads of writeBody
are callable using argument types (VariantN!20LU), candidates
are
Code:
import vibe.vibe;
import std.array
On Thursday, 17 October 2019 at 12:10:21 UTC, Dennis wrote:
On Thursday, 17 October 2019 at 12:06:49 UTC, Dennis wrote:
You can put "buildRequirements": "allowWarnings" in your
dub.json.
Should be
"buildRequirements": ["allowWarnings"]
the same error
Performing "debug" build using C:\D\dmd2
On Thursday, 17 October 2019 at 08:57:06 UTC, Dennis wrote:
On Thursday, 17 October 2019 at 04:05:40 UTC, Greatsam4sure
wrote:
what is the way out.
I made a pull request fixing it:
https://github.com/adamdruppe/arsd/pull/222
In the mean time, you can add the subpackage
"arsd-official:simpled
Hi All,
Request your help on the below code and error
Error:
source\app.d(25,15): Error: none of the overloads of writeBody
are callable using argument types (VariantN!20LU), candidates are
Code:
import vibe.vibe;
import std.array : array;
import mysql;
import std.stdio;
import std.range;
On Thursday, 17 October 2019 at 18:12:54 UTC, Andre Pany wrote:
On Thursday, 17 October 2019 at 10:58:20 UTC, Vino wrote:
Hi All,
We are planning to migrate our website form Mysql/PHP to
Mysql/D using vibe.d , as part of the plan we tried to install
the vibe.d (vibe.d 0.8.6 release) and we
On Thursday, 17 October 2019 at 10:58:20 UTC, Vino wrote:
Hi All,
We are planning to migrate our website form Mysql/PHP to
Mysql/D using vibe.d , as part of the plan we tried to install
the vibe.d (vibe.d 0.8.6 release) and we are facing below
issue, we have tried both the version of compil
On Thursday, 17 October 2019 at 14:50:23 UTC, Paul Backus wrote:
On Thursday, 17 October 2019 at 14:45:24 UTC, Mil58 wrote:
Hi all...
Does exist (or not?) a way to create array with several types
(as in Python)
(example) :
xxx[4] myTab = [180, "John", false, -0.771];
Of course, this is doi
On Thursday, 17 October 2019 at 14:45:24 UTC, Mil58 wrote:
Hi all...
Does exist (or not?) a way to create array with several types
(as in Python)
(example) :
xxx[4] myTab = [180, "John", false, -0.771];
Of course, this is doing an Error ;-) Thanks.
import std.variant;
Variant[4] myTab =
Hi all...
Does exist (or not?) a way to create array with several types (as
in Python)
(example) :
xxx[4] myTab = [180, "John", false, -0.771];
Of course, this is doing an Error ;-) Thanks.
On Thursday, 17 October 2019 at 12:19:03 UTC, Vinay Sajip wrote:
Are arrays and objects part of a unified type system?
No, they are separate. You can define a class that contains an
array, but it doesn't work like that automatically.
You'll want to use a wrapper class or a variant type or a
On Thursday, 17 October 2019 at 12:19:03 UTC, Vinay Sajip wrote:
Are arrays and objects part of a unified type system?
Specifically, if I do
void foo(Object x) {
if (typeid(x) == typeid(Object[])) {
auto a = cast(Object[]) x;
}
}
I get a compilation error:
onlineapp.d(3): Erro
On Wednesday, 16 October 2019 at 15:52:22 UTC, nazriel wrote:
On Friday, 11 October 2019 at 11:38:27 UTC, Jacob Carlborg
wrote:
...
Should we bump
https://github.com/dlang/dmd/blob/master/src/posix.mak#L143 ?
BR,
Damian
I made two PRs, lets see how it plays out:
- https://github.com/dlang/
Are arrays and objects part of a unified type system?
Specifically, if I do
void foo(Object x) {
if (typeid(x) == typeid(Object[])) {
auto a = cast(Object[]) x;
}
}
I get a compilation error:
onlineapp.d(3): Error: cannot cast expression x of type
object.Object to Object[]
W
On Thursday, 17 October 2019 at 12:06:49 UTC, Dennis wrote:
You can put "buildRequirements": "allowWarnings" in your
dub.json.
Should be
"buildRequirements": ["allowWarnings"]
On Thursday, 17 October 2019 at 11:35:26 UTC, Adam D. Ruppe wrote:
ugh dub insists on this stupid warning as error nonsense and
the warnings suck so they slip through me sometimes.
You can put "buildRequirements": "allowWarnings" in your dub.json.
(buildRequirements "allowWarnings" in dub.sdl)
On Thursday, 17 October 2019 at 04:05:40 UTC, Greatsam4sure wrote:
Warning: statement is not reachable
ugh dub insists on this stupid warning as error nonsense and the
warnings suck so they slip through me sometimes.
On Thursday, 17 October 2019 at 10:50:52 UTC, Brett wrote:
auto n = (){ return Z[0]; };
that's a pointer, the optional () rule only applies to direct
functions, not pointers/delegates.
so do
auto n () { return Z[0]; }
n.X
no assignment means function instead of poi
Hi All,
We are planning to migrate our website form Mysql/PHP to
Mysql/D using vibe.d , as part of the plan we tried to install
the vibe.d (vibe.d 0.8.6 release) and we are facing below issue,
we have tried both the version of compiler (DMD 2.088.1 DMD Beta
2.089.0-beta.1) the issue is same
auto n = (){ return Z[0]; };
n().X = X;
I'm trying to alias nodes away but alias n = Z[0]; fails.
Dropping () from n().X fails also.
On Thursday, 17 October 2019 at 08:57:06 UTC, Dennis wrote:
On Thursday, 17 October 2019 at 04:05:40 UTC, Greatsam4sure
wrote:
what is the way out.
I made a pull request fixing it:
https://github.com/adamdruppe/arsd/pull/222
In the mean time, you can add the subpackage
"arsd-official:simpled
On Thursday, 17 October 2019 at 04:05:40 UTC, Greatsam4sure wrote:
what is the way out.
I made a pull request fixing it:
https://github.com/adamdruppe/arsd/pull/222
In the mean time, you can add the subpackage
"arsd-official:simpledisplay" as a depdendency instead so cgi.d
won't be included
33 matches
Mail list logo