Re: Cannot spawn process: npm start

2016-10-04 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 18:41:16 UTC, FreeSlave wrote: On Tuesday, 4 October 2016 at 17:02:34 UTC, Adam D. Ruppe wrote: On Tuesday, 4 October 2016 at 16:55:22 UTC, Andre Pany wrote: Spawn process is working fine on linux, only on windows it doesn't work. I will create a bug report. Thi

Re: Why can't static arrays be sorted?

2016-10-04 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, October 04, 2016 20:05:15 TheGag96 via Digitalmars-d-learn wrote: > I was writing some code today and ran into this oddity that I'd > never come across before: > > import std.algorithm : sort; > int[10] arr = [0, 3, 4, 6, 2, 1, 1, 4, 6, 9]; > thing.sort(); > > This doesn'

Re: Why can't static arrays be sorted?

2016-10-04 Thread Adrian Matoga via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 20:05:15 UTC, TheGag96 wrote: I was writing some code today and ran into this oddity that I'd never come across before: import std.algorithm : sort; int[10] arr = [0, 3, 4, 6, 2, 1, 1, 4, 6, 9]; thing.sort(); This doesn't compile. Obviously the .sort p

Re: Shared an non-shared

2016-10-04 Thread ag0aep6g via Digitalmars-d-learn
On 10/04/2016 09:22 PM, Begah wrote: I seem to be missing something. It seems that if you want to create a shared object of a structure ( or class ), then I have to copy every functions and add "shared" to it. This seems way more work than it should. For example why can't this simply work : cl

Re: Why can't static arrays be sorted?

2016-10-04 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 20:05:15 UTC, TheGag96 wrote: I was writing some code today and ran into this oddity that I'd never come across before: import std.algorithm : sort; int[10] arr = [0, 3, 4, 6, 2, 1, 1, 4, 6, 9]; thing.sort(); This doesn't compile. Obviously the .sort p

Why can't static arrays be sorted?

2016-10-04 Thread TheGag96 via Digitalmars-d-learn
I was writing some code today and ran into this oddity that I'd never come across before: import std.algorithm : sort; int[10] arr = [0, 3, 4, 6, 2, 1, 1, 4, 6, 9]; thing.sort(); This doesn't compile. Obviously the .sort property works, but what about static arrays makes them unabl

Shared an non-shared

2016-10-04 Thread Begah via Digitalmars-d-learn
I seem to be missing something. It seems that if you want to create a shared object of a structure ( or class ), then I have to copy every functions and add "shared" to it. This seems way more work than it should. For example why can't this simply work : class Image { string name;

Re: Cannot spawn process: npm start

2016-10-04 Thread FreeSlave via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 17:02:34 UTC, Adam D. Ruppe wrote: On Tuesday, 4 October 2016 at 16:55:22 UTC, Andre Pany wrote: Spawn process is working fine on linux, only on windows it doesn't work. I will create a bug report. This isn't really a bug if it is a cmd file like the other poste

Re: Cannot spawn process: npm start

2016-10-04 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 16:55:22 UTC, Andre Pany wrote: Spawn process is working fine on linux, only on windows it doesn't work. I will create a bug report. This isn't really a bug if it is a cmd file like the other poster said... cmd files are scripts that need to be run through the i

Re: Getting GtkD working with OpenGL

2016-10-04 Thread Mike Wey via Digitalmars-d-learn
On 10/03/2016 11:46 PM, Chalix wrote: On Monday, 3 October 2016 at 18:00:53 UTC, Mike Wey wrote: The signal functions can be found in the gobject.Signals module. But you should use the GLArea.addOnCreateContext / addOnRender / addOnResize functions to attach a D delegate to the signal. You will

Re: Cannot spawn process: npm start

2016-10-04 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 13:52:23 UTC, FreeSlave wrote: On Tuesday, 4 October 2016 at 12:58:19 UTC, Andre Pany wrote: Hi, I need to call a Node application. node and npm are in windows path variable. I have following folder structure: ./app.d ./js/helloworld.js ./js/package.json [...]

Re: Cannot spawn process: npm start

2016-10-04 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 13:18:45 UTC, Adam D. Ruppe wrote: Are you sure npm is in the path? From your shell, do `which npm` and see where it is coming from, you might want to use the full path to spawn process. Yes, npm is in path. From all directories I can execute npm/node (--version)

Re: Using OpenGL

2016-10-04 Thread Darren via Digitalmars-d-learn
Back again with another little problem that isn't specifically OpenGL related, but is a result of getting such code to work. Code I'm working on: https://dfcode.wordpress.com/2016/10/04/linker-problem/ What I'm learning from: http://www.learnopengl.com/#!Getting-started/Camera, http://www.lea

artistic and boost licenses compatibility

2016-10-04 Thread drug via Digitalmars-d-learn
Could somebody answer the following question: may I port a project that has artistic license to D and relicense it under boost one? Artistic license allows relicensing in total but I'm not sure it's possible in case of Boost license. Thanks

Re: Cannot spawn process: npm start

2016-10-04 Thread FreeSlave via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 12:58:19 UTC, Andre Pany wrote: Hi, I need to call a Node application. node and npm are in windows path variable. I have following folder structure: ./app.d ./js/helloworld.js ./js/package.json [...] npm is .cmd file on Windows. Maybe this is issue. Looks like

Re: bug, or is this also intended?

2016-10-04 Thread TheFlyingFiddle via Digitalmars-d-learn
On Monday, 3 October 2016 at 11:40:00 UTC, deed wrote: Unexpected auto-concatenation of string elements: string[] arr = ["a", "b" "c"];// ["a", "bc"], length==2 int[] arr2 = [[1], [2] [3]];// Error: array index 3 is out of bounds [2][0 .. 1] // Error:

Re: Simple Function Parameter question...

2016-10-04 Thread brian via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 13:16:35 UTC, Adam D. Ruppe wrote: I'd put your repeated variables together in a struct, then pass it around to the functions. At least then you pass just one param at a time, without losing the info. That's not a bad idea. I have been creating "ids" to point to m

Re: Cannot spawn process: npm start

2016-10-04 Thread Adam D. Ruppe via Digitalmars-d-learn
Are you sure npm is in the path? From your shell, do `which npm` and see where it is coming from, you might want to use the full path to spawn process.

Re: Simple Function Parameter question...

2016-10-04 Thread Adam D. Ruppe via Digitalmars-d-learn
I'd put your repeated variables together in a struct, then pass it around to the functions. At least then you pass just one param at a time, without losing the info.

Simple Function Parameter question...

2016-10-04 Thread brian via Digitalmars-d-learn
Howdy folks This might be a really stupid question, but ya know, if you don't ask ... So, anytime I am calling a function, I have to include everything that the function needs all the time. My simplistic example is: #!/usr/bin/rdmd import std.stdio; void test(string firstinput, string sec

Cannot spawn process: npm start

2016-10-04 Thread Andre Pany via Digitalmars-d-learn
Hi, I need to call a Node application. node and npm are in windows path variable. I have following folder structure: ./app.d ./js/helloworld.js ./js/package.json content of helloworld.js: console.log('hello world'); content of package.json: { "name": "test", "version": "1.0.0", "scripts

Re: How to debug (potential) GC bugs?

2016-10-04 Thread Ilya Yaroshenko via Digitalmars-d-learn
On Sunday, 25 September 2016 at 16:23:11 UTC, Matthias Klumpp wrote: Hello! I am working together with others on the D-based appstream-generator[1] project, which is generating software metadata for "software centers" and other package-manager functionality on Linux distributions, and is used