Announcing Mecca

2018-05-03 Thread Shachar Shemesh via Digitalmars-d-announce
Hello everybody, I am very happy to announce that Mecca version 0.0.1 (sorry, no more zeros than that) is now officially available. You can get the source code at https://github.com/weka-io/mecca. The API documentation is at https://weka-io.github.com/mecca/docs. Mecca is a run-time support

Re: DConf 2018 Livestream

2018-05-03 Thread Nemanja Boric via Digitalmars-d-announce
On Friday, 4 May 2018 at 00:09:53 UTC, Nick Sabalausky (Abscissa) wrote: On 05/03/2018 11:12 AM, Nemanja Boric wrote: On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote: On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote: For those of you unable to join us in Munich, you can

Re: auto: useful, annoying or bad practice?

2018-05-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/02/2018 10:05 AM, H. S. Teoh wrote: I've been using structural typing / design by introspection to good success in my latest project, actually. I don't doubt that. Similar to global namespace, if the structural typing is only used heavily by one or two components of a project (ie,

Windows to Linux Porting

2018-05-03 Thread Vino via Digitalmars-d-learn
Hi All, Request you help on the below code, the below code always state the file does not exist even if the file do exist. Code: import core.stdc.stdlib: exit; import std.stdio; import std.file; import std.path; auto osSwitch () { string ConfigFile; version (Windows) { ConfigFile =

mysql-native v2.2.2: Minor updates

2018-05-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
An all-D MySQL/MariaDB client library: https://github.com/mysql-d/mysql-native == Tagged release, 'v2.2.2'. Sorry, no "zero date" fix just yet, but I think we're getting close (#65). In this version: - Fixed #177: Update unit-threaded, and don't lock

Re: When will the final DConf videos surface on YouTube?

2018-05-03 Thread IM via Digitalmars-d
On Friday, 4 May 2018 at 00:13:42 UTC, Nick Sabalausky (Abscissa) wrote: On 05/03/2018 05:09 PM, IM wrote: I can't wait to watch. Not sure if you're specifically talking about the videos being split up per talk, but you can rewatch the full first two days livestreams here: Day 1 Afternoon

Re: When will the final DConf videos surface on YouTube?

2018-05-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 05/03/2018 05:09 PM, IM wrote: I can't wait to watch. Not sure if you're specifically talking about the videos being split up per talk, but you can rewatch the full first two days livestreams here: Day 1 Afternoon (Apparently morning was lost, I hear):

How do you connect Python with D via socket, I'm still getting connection refused error

2018-05-03 Thread Enjoys Math via Digitalmars-d-learn
Error - builtins.ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it Python Side --- from PyQt5.QtWidgets import QApplication, QMainWindow import sys import socket import settings if __name__ == "__main__": app

LDC phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'

2018-05-03 Thread IntegratedDimensions via Digitalmars-d-learn
trying to compile a simple program in x86. Compiles fine in dmd and ldcx64. Seems like ldc is using the wrong lib for some reason? phobos2-ldc.lib(json.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86' Error: C:\Program Files (x86)\Microsoft

Re: D vs nim

2018-05-03 Thread Timothee Cour via Digitalmars-d
nim supports static if (`when`) + CTFE. A simple google search or searching would've revealed that. On Thu, May 3, 2018 at 3:20 PM Mark via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Thursday, 3 May 2018 at 20:57:16 UTC, Dennis wrote: > > On Thursday, 3 May 2018 at 19:11:05 UTC,

Re: Is HibernateD dead?

2018-05-03 Thread Matthias Klumpp via Digitalmars-d-learn
On Thursday, 3 May 2018 at 21:28:18 UTC, bauss wrote: On Thursday, 3 May 2018 at 18:01:07 UTC, Matthias Klumpp wrote: DiamondMVC looks nice, but I would need PostgreSQL support for sure. Therefore, I think there are three options: 1) Extend the DiamondMVC ORM to support missing features that

Re: D vs nim

2018-05-03 Thread Mark via Digitalmars-d
On Thursday, 3 May 2018 at 20:57:16 UTC, Dennis wrote: On Thursday, 3 May 2018 at 19:11:05 UTC, Mark wrote: Funnily, none of these languages have a "static if" construct, nor do Rust, Swift and Nim. Not one that I could find, anyway. What qualifies under "static if"? Because Rust, Swift and

Re: Is HibernateD dead?

2018-05-03 Thread bauss via Digitalmars-d-learn
On Thursday, 3 May 2018 at 18:01:07 UTC, Matthias Klumpp wrote: DiamondMVC looks nice, but I would need PostgreSQL support for sure. Therefore, I think there are three options: 1) Extend the DiamondMVC ORM to support missing features that Hibernated has (maybe make it use ddbc as backend?)

When will the final DConf videos surface on YouTube?

2018-05-03 Thread IM via Digitalmars-d
I can't wait to watch.

Re: Finding the last executed line by checking dmd core

2018-05-03 Thread drug via Digitalmars-d-learn
On 03.05.2018 22:45, kerdemdemir wrote: After a big refactor my code crushes I have no idea where. I am only getting : Program exited with code -11 And a core file. I used to use gdb for c++ coredumps. With what program I can check dmd core file? Erdemdem The same programs and options

Re: Finding the last executed line by checking dmd core

2018-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, May 03, 2018 19:45:54 kerdemdemir via Digitalmars-d-learn wrote: > After a big refactor my code crushes I have no idea where. > > I am only getting : > > Program exited with code -11 > > And a core file. > > I used to use gdb for c++ coredumps. With what program I > can check dmd

Re: D vs nim

2018-05-03 Thread Dennis via Digitalmars-d
On Thursday, 3 May 2018 at 19:11:05 UTC, Mark wrote: Funnily, none of these languages have a "static if" construct, nor do Rust, Swift and Nim. Not one that I could find, anyway. What qualifies under "static if"? Because Rust, Swift and Nim do have conditional compilation.

Re: Is HibernateD dead?

2018-05-03 Thread Matthias Klumpp via Digitalmars-d-learn
On Thursday, 3 May 2018 at 18:52:34 UTC, singingbush wrote: On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Should I use it if I need an ORM? Or would I risk unpatched

Lightning Talk, Macros, and Old Ideas

2018-05-03 Thread Jesse Phillips via Digitalmars-d
I just got through watching the "live stream" not so live and noticed one of the lightning talks on Lisp macros. And that system just reminded me of this old presentation: https://youtu.be/FRfTk44nuWE?t=1h5m32s

Finding the last executed line by checking dmd core

2018-05-03 Thread kerdemdemir via Digitalmars-d-learn
After a big refactor my code crushes I have no idea where. I am only getting : Program exited with code -11 And a core file. I used to use gdb for c++ coredumps. With what program I can check dmd core file? Erdemdem

Re: DConf 2018 Livestream

2018-05-03 Thread Juan via Digitalmars-d-announce
On Thursday, 3 May 2018 at 18:03:17 UTC, bachmeier wrote: It's not a problem. Walter can redo the talk from his basement and upload it to youtube. Well, If he is able to reproduce the look and feel from the original with all the jokes etc. I can accept that.

Re: Derelict on Ubuntu with CODE::BLOCKS

2018-05-03 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 3 May 2018 at 18:36:04 UTC, RegeleIONESCU wrote: And here is the error I get when I execute dub run: christian@Christians:~/D_Projects$ dub run Performing "debug" build using /usr/bin/dmd for x86_64. derelict-util 2.0.6: target for configuration "library" is up to date.

Re: D vs nim

2018-05-03 Thread Mark via Digitalmars-d
On Wednesday, 25 April 2018 at 14:18:07 UTC, Rel wrote: In case you guys like to take a quick look at new emerging, but somewhat unknown systems programming languages: * https://www.red-lang.org/ (own handwritten backend) * https://crystal-lang.org/ (llvm-based backend) * https://ziglang.org/

Re: Is HibernateD dead?

2018-05-03 Thread singingbush via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Should I use it if I need an ORM? Or would I risk unpatched security risks? Both hibernated and ddbc have had open pull

Re: Derelict on Ubuntu with CODE::BLOCKS

2018-05-03 Thread RegeleIONESCU via Digitalmars-d-learn
On Thursday, 3 May 2018 at 06:33:53 UTC, Mike Parker wrote: On Thursday, 3 May 2018 at 03:18:02 UTC, RegeleIONESCU wrote: The only problem I have with DUB is that all added dependencies are "old". For example added dependency "derelict-sdl2" is version="~>2.1.4" while on DUB site the last

Re: D vs nim

2018-05-03 Thread David J Kordsmeier via Digitalmars-d
On Friday, 10 April 2015 at 21:26:35 UTC, bachmeier wrote: On Friday, 10 April 2015 at 18:52:24 UTC, weaselcat wrote: The only things I've read about nim have been on the D forums - it seems the wikipedia article is even being considered for deletion due to not being noteworthy. So I think you

[Issue 18026] Stack overflow in ddmd/dtemplate.d:6241, TemplateInstance::needsCodegen()

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18026 --- Comment #6 from JR --- I can no longer reproduce with 2.079.1 nor 2.080.0, on the same machines that previously exhibited the overflow. Was something changed, or is it merely being tricky again? --

Re: DConf 2018 Livestream

2018-05-03 Thread bachmeier via Digitalmars-d-announce
On Thursday, 3 May 2018 at 11:53:02 UTC, Juan wrote: On Thursday, 3 May 2018 at 05:46:45 UTC, Bastiaan Veelo wrote: As I understand it, they were not recording but relying on YouTube to save the stream. For whatever reason, that didn’t work out. They wrote that they would be trying to recover

Re: Is HibernateD dead?

2018-05-03 Thread Matthias Klumpp via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Should I use it if I need an ORM? Or would I risk unpatched security risks? Hah! I was just browsing the forums thinking

Re: Lightening cable?

2018-05-03 Thread Luís Marques via Digitalmars-d
On Thursday, 3 May 2018 at 15:57:04 UTC, Andrea Fontana wrote: 5-stars. Very happy with borrowing from Steven. Would recommend. Those paid reviews. :) Looking forward to collecting my money. Send it to my bitcoin address.

Re: Lightening cable?

2018-05-03 Thread Andrea Fontana via Digitalmars-d
On Thursday, 3 May 2018 at 14:08:06 UTC, Luís Marques wrote: On Thursday, 3 May 2018 at 13:24:34 UTC, bauss wrote: On Thursday, 3 May 2018 at 12:54:57 UTC, Steven Schveighoffer wrote: No, the solution is schveiguy prime -- borrow from the person sitting next to you ;) -Steve Watch out

Re: [dub] How to specify with dub a custom repository and build directory ?

2018-05-03 Thread rikki cattermole via Digitalmars-d
On 04/05/2018 3:44 AM, bioinfornatics wrote: On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote: On 04/05/2018 3:27 AM, bioinfornatics wrote: [...] dub doesn't do platform specific installing. It just handles building. What you want is out of scope and has been discussed. Ok

Re: [dub] How to specify with dub a custom repository and build directory ?

2018-05-03 Thread bioinfornatics via Digitalmars-d
On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote: On 04/05/2018 3:27 AM, bioinfornatics wrote: [...] dub doesn't do platform specific installing. It just handles building. What you want is out of scope and has been discussed. Ok but as all D projects can be built only with

Re: [dub] How to specify with dub a custom repository and build directory ?

2018-05-03 Thread rikki cattermole via Digitalmars-d
On 04/05/2018 3:27 AM, bioinfornatics wrote: Dear, As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ? When I run:  dub fetch A .dub directory is created into $HOME. I tried to

[Issue 18822] [REG 2.080.0] Compiling byGrapheme Fails

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18822 --- Comment #1 from Jack Stouffer --- Introduced in https://github.com/dlang/phobos/pull/6235 So, what's happening is that the toString of Appender now uses formatValue, which calls formatRange, which calls graphemeStride.

[dub] How to specify with dub a custom repository and build directory ?

2018-05-03 Thread bioinfornatics via Digitalmars-d
Dear, As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ? When I run: dub fetch A .dub directory is created into $HOME. I tried to provide another directory with --root parameter

Re: DConf 2018 Livestream

2018-05-03 Thread Joakim via Digitalmars-d-announce
On Thursday, 3 May 2018 at 11:53:02 UTC, Juan wrote: On Thursday, 3 May 2018 at 05:46:45 UTC, Bastiaan Veelo wrote: As I understand it, they were not recording but relying on YouTube to save the stream. For whatever reason, that didn’t work out. They wrote that they would be trying to recover

Re: DConf 2018 Livestream

2018-05-03 Thread Nemanja Boric via Digitalmars-d-announce
On Thursday, 3 May 2018 at 12:24:16 UTC, Per Nordlöw wrote: On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote: For those of you unable to join us in Munich, you can watch the fun online via the following link: https://www.youtube.com/user/hlmceventsgmbh I can't find Andrei's talk

[Issue 18822] New: [REG 2.080.0] Compiling byGrapheme Fails

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18822 Issue ID: 18822 Summary: [REG 2.080.0] Compiling byGrapheme Fails Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression

[Issue 18819] DMD compilation crash

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18819 --- Comment #2 from ki...@gmx.net --- (In reply to kinke from comment #1) > I just glanced at the code, but it appears invalid (specifically, > emplaceRef() for a 0-sized T), see https://github.com/dlang/phobos/pull/6480. Disregard, there's no

[Issue 18819] DMD compilation crash

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18819 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #1 from

Re: Lightening cable?

2018-05-03 Thread Luís Marques via Digitalmars-d
On Thursday, 3 May 2018 at 13:24:34 UTC, bauss wrote: On Thursday, 3 May 2018 at 12:54:57 UTC, Steven Schveighoffer wrote: No, the solution is schveiguy prime -- borrow from the person sitting next to you ;) -Steve Watch out Amazon, you got competition 5-stars. Very happy with borrowing

Re: Ambiguous template parameter names

2018-05-03 Thread bauss via Digitalmars-d-learn
On Thursday, 3 May 2018 at 02:51:18 UTC, Meta wrote: If you want that, you might be able to do `int val = val` on the inner function, though I'm not sure that'll work. It does not work and will do nothing.

Re: Lightening cable?

2018-05-03 Thread bauss via Digitalmars-d
On Thursday, 3 May 2018 at 12:54:57 UTC, Steven Schveighoffer wrote: On 5/3/18 12:44 PM, Andrea Fontana wrote: On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote:

Re: Lightening cable?

2018-05-03 Thread Steven Schveighoffer via Digitalmars-d
On 5/3/18 12:44 PM, Andrea Fontana wrote: On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote: Hi. Can anyone staying at the conference hotel lend me an iPhone

Re: DConf 2018 Livestream

2018-05-03 Thread Per Nordlöw via Digitalmars-d-announce
On Wednesday, 2 May 2018 at 07:13:21 UTC, Mike Parker wrote: For those of you unable to join us in Munich, you can watch the fun online via the following link: https://www.youtube.com/user/hlmceventsgmbh I can't find Andrei's talk this morning. Was it lost?

Re: C++ / Wrong function signature generated for reference parameter

2018-05-03 Thread Robert M. Münch via Digitalmars-d-learn
On 2018-05-03 09:34:56 +, kinke said: That's why there's `extern(C++, class) struct Image`, see https://dlang.org/spec/cpp_interface.html#classes. Hi, thanks. I didn't understand the docs as without any code examples for all the different cases, it's hard to derive the syntax and how to

[Issue 18821] DMD segfault 2.080

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18821 Mr. Smith changed: What|Removed |Added CC||mrsmit...@yandex.ru --

[Issue 18821] New: DMD segfault 2.080

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18821 Issue ID: 18821 Summary: DMD segfault 2.080 Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1

Re: Is HibernateD dead?

2018-05-03 Thread bauss via Digitalmars-d-learn
On Thursday, 3 May 2018 at 11:00:36 UTC, bauss wrote: On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: That is if you want to use something that isn't "dead"

Re: Is HibernateD dead?

2018-05-03 Thread bauss via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:27:47 UTC, Pasqui23 wrote: Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Should I use it if I need an ORM? Or would I risk unpatched security risks? Although currently only mysql/mariadb support,

Re: Lightening cable?

2018-05-03 Thread Andrea Fontana via Digitalmars-d
On Thursday, 3 May 2018 at 10:51:59 UTC, bauss wrote: On Thursday, 3 May 2018 at 10:44:05 UTC, Andrea Fontana wrote: On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques

Re: Lightening cable?

2018-05-03 Thread bauss via Digitalmars-d
On Thursday, 3 May 2018 at 10:44:05 UTC, Andrea Fontana wrote: On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote: Hi. Can anyone staying at the conference hotel

Re: Tilix 1.7.9 Released

2018-05-03 Thread Chris via Digitalmars-d-announce
On Sunday, 29 April 2018 at 14:01:10 UTC, Gerald wrote: A new version of tilix has been released. For those not familiar with it, Tilix is a terminal emulator for Linux written in D using GTK. The list of changes is available here: https://gnunn1.github.io/tilix-web/2018/04/28/release-1-7-9

Re: Lightening cable?

2018-05-03 Thread Andrea Fontana via Digitalmars-d
On Tuesday, 1 May 2018 at 11:25:31 UTC, Luís Marques wrote: On Tuesday, 1 May 2018 at 09:32:13 UTC, Stefan Koch wrote: On Monday, 30 April 2018 at 19:30:25 UTC, Luís Marques wrote: Hi. Can anyone staying at the conference hotel lend me an iPhone charging cable? Even just for a few minutes

Re: cannot find -lcurl in Linux

2018-05-03 Thread Vino via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:22:43 UTC, Vino wrote: On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote: [...] Hi Jonathan, The below packages are already installed [...] Hi Jonathan, Installed the package libcurl-devel, that resolved the issue. Thank you very much.

Is HibernateD dead?

2018-05-03 Thread Pasqui23 via Digitalmars-d-learn
Last commit on https://github.com/buggins/hibernated was almost a year ago So what is the status of HibernateD?Should I use it if I need an ORM? Or would I risk unpatched security risks?

Re: cannot find -lcurl in Linux

2018-05-03 Thread Vino via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote: On Thursday, May 03, 2018 10:10:05 Vino via Digitalmars-d-learn wrote: Hi All, Request your help , while compiling a d program in SUSE Linux i am getting the below error, the executable curl is present under the path

Re: cannot find -lcurl in Linux

2018-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, May 03, 2018 10:10:05 Vino via Digitalmars-d-learn wrote: > Hi All, > > Request your help , while compiling a d program in SUSE Linux i > am getting the below error, the executable curl is present under > the path /usr/bin/ > > ask:/DScript # dmd -m64 -O -release -inline test.d >

cannot find -lcurl in Linux

2018-05-03 Thread Vino via Digitalmars-d-learn
Hi All, Request your help , while compiling a d program in SUSE Linux i am getting the below error, the executable curl is present under the path /usr/bin/ ask:/DScript # dmd -m64 -O -release -inline test.d /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot

Re: Why does enumerate over range return dchar, when ranging without returns char?

2018-05-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, May 03, 2018 22:00:04 rikki cattermole via Digitalmars-d-learn wrote: > On 03/05/2018 9:50 PM, ag0aep6g wrote: > > On 05/03/2018 07:56 AM, rikki cattermole wrote: > >>> ``` > >>> import std.stdio; > >>> import std.range : enumerate; > >>> > >>> void main() > >>> { > >>> char[] s

Re: Why does enumerate over range return dchar, when ranging without returns char?

2018-05-03 Thread rikki cattermole via Digitalmars-d-learn
On 03/05/2018 9:50 PM, ag0aep6g wrote: On 05/03/2018 07:56 AM, rikki cattermole wrote: ``` import std.stdio; import std.range : enumerate; void main() {  char[] s = ['a','b','c']; char[3] x; auto i = 0; foreach(c; s) { x[i] = c; i++; }

Re: Why does enumerate over range return dchar, when ranging without returns char?

2018-05-03 Thread ag0aep6g via Digitalmars-d-learn
On 05/03/2018 07:56 AM, rikki cattermole wrote: ``` import std.stdio; import std.range : enumerate; void main() {  char[] s = ['a','b','c']; char[3] x; auto i = 0; foreach(c; s) { x[i] = c; i++; } writeln(x); } ``` Above works without cast. '''

Re: C++ / Wrong function signature generated for reference parameter

2018-05-03 Thread kinke via Digitalmars-d-learn
On Thursday, 3 May 2018 at 07:00:03 UTC, Robert M. Münch wrote: using struct won't give the correct signature That's why there's `extern(C++, class) struct Image`, see https://dlang.org/spec/cpp_interface.html#classes. Not sure about the const part too, if this is correct on the D side...

Re: auto: useful, annoying or bad practice?

2018-05-03 Thread Nerve via Digitalmars-d
On Monday, 30 April 2018 at 21:11:07 UTC, Gerald wrote: So I'm curious, what's the consensus on auto? Speaking for myself: 1) I find auto to be useful when instantiating objects locally; eliminates redundancy, noise, and line size. 2) I avoid auto functions and despise them in API

Re: DConf 2018 Livestream

2018-05-03 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 3 May 2018 at 07:14:51 UTC, Timoses wrote: Will the videos of the talks etc. be available online later? That's the plan. As Bastiaan Veelo wrote it appears that something went wrong with the youtube recordings. Hope this gets resolved and at least the upcoming talks, if not

[Issue 18820] dip1000 mangling is different for inferred templates

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18820 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --

[Issue 18820] New: dip1000 mangling is different for inferred templates

2018-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18820 Issue ID: 18820 Summary: dip1000 mangling is different for inferred templates Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: link-failure,

Re: C++ / Wrong function signature generated for reference parameter

2018-05-03 Thread Robert M. Münch via Digitalmars-d-learn
On 2018-05-03 02:23:27 +, Rubn said: You want to use a struct which isn't passed by pointer, but by value. Which will then give you the signature you want. In addition to my other post, using struct won't give the correct signature. That's the signature I need: public: unsigned int

Re: Derelict on Ubuntu with CODE::BLOCKS

2018-05-03 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 3 May 2018 at 03:18:02 UTC, RegeleIONESCU wrote: The only problem I have with DUB is that all added dependencies are "old". For example added dependency "derelict-sdl2" is version="~>2.1.4" while on DUB site the last version is 3.1.0-alpha.3. I tried the --upgrade plus

Re: C++ / Wrong function signature generated for reference parameter

2018-05-03 Thread Robert M. Münch via Digitalmars-d-learn
On 2018-05-03 02:23:27 +, Rubn said: If "Image" is a class then all classes are based as pointers to their respective object. Hi, ok. Didn't remember that this is always the case. So passing a ref to a class is kind of redundant. Yes, that's why I was confused. You want to use a

Re: Why does enumerate over range return dchar, when ranging without returns char?

2018-05-03 Thread rikki cattermole via Digitalmars-d-learn
On 03/05/2018 5:44 PM, James Blachly wrote: I am puzzled why enumerating in a foreach returns a dchar (which forces me to cast), whereas without the enumerate the range returns a char as expected. Example: ``` import std.stdio; import std.range : enumerate; void main() { char[] s =