Re: Python and D (PyD)

2017-11-28 Thread Fat_Umpalumpa via Digitalmars-d-learn
you need to tell the compiler where to look to find pyd (which it can't find in '/Library/D/dmd/src/phobos' or '/Library/D/dmd/src/druntime/import'). If you are invoking the compiler yourself use the `-I` switch (`-Ipath/to/pyd`). Or if you are using dub (I recommend this) make sure that is is

Re: Storing Formatted Array Value

2017-11-28 Thread Petar via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 07:08:12 UTC, Vino wrote: Hi All, Request your help, with the below code I am able to print the value of the array without brackects , but can some on help me on hot to store this output to a variable Program: import std.stdio; import std.container; void

Re: Python and D (PyD)

2017-11-28 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 06:34:53 UTC, Fat_Umpalumpa wrote: Hello, I have searched these forums a bit to see if it is possible to use python libraries such as matplotlib which I have enough experience with, and wish to continue using this wonderful library within D. Maybe there are

Storing Formatted Array Value

2017-11-28 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, with the below code I am able to print the value of the array without brackects , but can some on help me on hot to store this output to a variable Program: import std.stdio; import std.container; void main() { auto test = Array!string("Test1", "Test2");

Re: Email validation

2017-11-28 Thread Vino via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 05:22:34 UTC, Dmitry wrote: On Wednesday, 29 November 2017 at 03:49:56 UTC, codephantom wrote: string domainRequired = "@hotmail.com"; string emailAddress = "vino.bhee...@hotmail.com"; emailAddress.endsWith(domainRequired) ? writeln("domain ok")

Python and D (PyD)

2017-11-28 Thread Fat_Umpalumpa via Digitalmars-d-learn
Hello, I have searched these forums a bit to see if it is possible to use python libraries such as matplotlib which I have enough experience with, and wish to continue using this wonderful library within D. Maybe there are great D graphing libraries, but I have zero experience with them. I

Strange error when compiling with dmd, not with ldc

2017-11-28 Thread Fra Mecca via Digitalmars-d-learn
I have this struct: immutable struct Configuration { string title; string baseurl; string url; string email; string author; string parser; string target; string urlFormat; string urlFormatCmd; short port; string[] ignore; string[] extensions;

Re: Web servers in D

2017-11-28 Thread rikki cattermole via Digitalmars-d-learn
On 29/11/2017 5:51 AM, Hasen Judy wrote: On Tuesday, 12 September 2017 at 12:34:26 UTC, aberba wrote: On Friday, 25 August 2017 at 05:25:09 UTC, Hasen Judy wrote: What libraries are people using to run webservers other than vibe.d? Don't get me wrong I like the async-io aspect of vibe.d but I

Re: Looking for a job in USA

2017-11-28 Thread Ali Çehreli via Digitalmars-d
On 11/28/2017 09:03 PM, bauss wrote: >> It certainly looks like at least one post has been deleted >> >> So it must be possible afterall ;-) > > People would still have it locally if they don't use the online forums. It depends on the settings of the NNTP client too. Thunderbird can list a

Re: Web servers in D

2017-11-28 Thread Hasen Judy via Digitalmars-d-learn
On Tuesday, 12 September 2017 at 12:34:26 UTC, aberba wrote: On Friday, 25 August 2017 at 05:25:09 UTC, Hasen Judy wrote: What libraries are people using to run webservers other than vibe.d? Don't get me wrong I like the async-io aspect of vibe.d but I don't like the weird template language

Re: Email validation

2017-11-28 Thread Dmitry via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 03:49:56 UTC, codephantom wrote: string domainRequired = "@hotmail.com"; string emailAddress = "vino.bhee...@hotmail.com"; emailAddress.endsWith(domainRequired) ? writeln("domain ok") : writeln("invalid domain"); Also you need check that

Re: Looking for a job in USA

2017-11-28 Thread bauss via Digitalmars-d
On Tuesday, 28 November 2017 at 02:54:31 UTC, codephantom wrote: On Tuesday, 28 November 2017 at 02:32:58 UTC, Joakim wrote: Yes, I was only talking about your statements about there not being a moderator and implying forum posts couldn't be deleted, as should be clear from the rest of what I

Re: Email validation

2017-11-28 Thread codephantom via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 18:47:06 UTC, Vino wrote: Hi All, Can you please provide me some example on who to validate an email address as the document dose not have an example for the same Ex: vino.bhee...@hotmail.com Conditions : The domain should contain only "hotmail.com" The

Re: Email validation

2017-11-28 Thread codephantom via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 22:42:27 UTC, Mike Wey wrote: isMail only checks the formatting of the email address and optionally if the domain has a MX record. I don't believe MX validation (checkDns) is implemented yet.

Re: Email validation

2017-11-28 Thread codephantom via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 18:47:06 UTC, Vino wrote: Hi All, Can you please provide me some example on who to validate an email address as the document dose not have an example for the same Ex: vino.bhee...@hotmail.com Conditions : The domain should contain only "hotmail.com" The

Re: Thoughts about D

2017-11-28 Thread Walter Bright via Digitalmars-d
On 11/28/2017 9:27 AM, Jacob Carlborg wrote: Why would druntime be a barrier for you for those projects? When the C version is 90K and the translated D version is 1200K, it is a barrier. It's a barrier for others, as well. Another barrier for me has turned out to be the way assert() works

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread rjframe via Digitalmars-d
On Tue, 28 Nov 2017 19:04:06 +, Manuel Maier wrote: > I didn't know about that tool yet, but I like the idea! However, when I > played around with it just now, I ran into the "Cannot find > dmd-2.0.x.x.bat file" issue [1]. And yes, I misread the installation > instructions (thought it said

Re: Floating point types default to NaN?

2017-11-28 Thread A Guy With a Question via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 01:25:47 UTC, Michael V. Franklin wrote: On Wednesday, 29 November 2017 at 01:24:21 UTC, A Guy With a Question wrote: I was just more curious of the design decisions that were made. So am I. I'm trying to get to the heart of in the the PR comments. Mike

Re: Floating point types default to NaN?

2017-11-28 Thread Michael V. Franklin via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 01:24:21 UTC, A Guy With a Question wrote: I was just more curious of the design decisions that were made. So am I. I'm trying to get to the heart of in the the PR comments. Mike

Re: Floating point types default to NaN?

2017-11-28 Thread A Guy With a Question via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 20:00:53 UTC, Michael V. Franklin wrote: On Monday, 27 November 2017 at 23:05:55 UTC, Michael V. Franklin wrote: I think I'm going to implement a feature gate to require explicit initialization. It would be better to be strict up front and relax it as flow

Re: Really? -- Error: function `object.Throwable.message` is not nothrow

2017-11-28 Thread A Guy With a Question via Digitalmars-d-learn
On Wednesday, 29 November 2017 at 00:52:41 UTC, A Guy With a Question wrote: .msg worked. I will let you all live. Thanks!

Re: Really? -- Error: function `object.Throwable.message` is not nothrow

2017-11-28 Thread A Guy With a Question via Digitalmars-d-learn
.msg worked. I will let you all live.

Re: UDAs on Enum Members: Does it require a DIP?

2017-11-28 Thread Michael V. Franklin via Digitalmars-d
On Tuesday, 28 November 2017 at 01:49:19 UTC, Jonathan M Davis wrote: There is a definite difference between posting stuff in the newsgroup to get attention brought to something and posting in the newsgroup to get an official answer on something from Walter or Andrei. My question was on

Re: Thoughts about D

2017-11-28 Thread codephantom via Digitalmars-d
On Tuesday, 28 November 2017 at 23:07:32 UTC, John Gabriele wrote: The big recent spike appears to coincide with DMD being re-licensed as fully open source, as well as the GDC inclusion into GCC. Years ago I was interested in D but considered the licensing to be a show-stopper. I've recently

Re: Really? -- Error: function `object.Throwable.message` is not nothrow

2017-11-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, November 28, 2017 23:48:06 Adam D. Ruppe via Digitalmars-d-learn wrote: > On Tuesday, 28 November 2017 at 23:41:28 UTC, A Guy With a > > Question wrote: > > What's the clean way to extract the message that passes the > > nothrow argument? Do I really have to embed another try catch? >

Re: Really? -- Error: function `object.Throwable.message` is not nothrow

2017-11-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 23:41:28 UTC, A Guy With a Question wrote: What's the clean way to extract the message that passes the nothrow argument? Do I really have to embed another try catch? I didn't even know it had a `message`... you should be able to pull the `.msg` member directly

Really? -- Error: function `object.Throwable.message` is not nothrow

2017-11-28 Thread A Guy With a Question via Digitalmars-d-learn
What's the clean way to extract the message that passes the nothrow argument? Do I really have to embed another try catch?

Re: Email validation

2017-11-28 Thread codephantom via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 19:32:40 UTC, Vino wrote: Can you provide me a example, as the link does not have any examples. From, Vino.B btw... yes documentation is an acknowledged issue with regards to phobos...but..that aside...it can also be useful (and wise) to look at the unit

Re: Thoughts about D

2017-11-28 Thread John Gabriele via Digitalmars-d
On Tuesday, 28 November 2017 at 08:58:46 UTC, Joakim wrote: Since Mike started the official D blog last summer, downloads of the reference compiler are up 90%: http://erdani.com/d/downloads.daily.png I don't think that's a coincidence and attribute a significant chunk of that to his

Re: Email validation

2017-11-28 Thread Mike Wey via Digitalmars-d-learn
On 28-11-17 20:32, Vino wrote: On Tuesday, 28 November 2017 at 18:51:50 UTC, Rene Zwanenburg wrote: On Tuesday, 28 November 2017 at 18:47:06 UTC, Vino wrote: Hi All, You can do this easily using the std.net.isemail module: https://dlang.org/phobos/std_net_isemail.html Hi Rene,  Can you

Re: First Impressions!

2017-11-28 Thread Mike Parker via Digitalmars-d
On Tuesday, 28 November 2017 at 19:39:19 UTC, Michael V. Franklin wrote: This DIP is related (https://github.com/dlang/DIPs/blob/master/DIPs/DIP1012.md) but I don't know what's happening with it. It's awaiting formal review. I'll move it forward when the formal review queue clears out a

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 --- Comment #7 from Steven Schveighoffer --- (In reply to kinke from comment #6) > Then `-m32mscoff` is another option for Win32. Yeah, if that defines CRuntime_Microsoft, then it should work. I admit I'm not too familiar with

Re: Thoughts about D

2017-11-28 Thread John via Digitalmars-d
On Tuesday, 28 November 2017 at 05:18:42 UTC, Adam D. Ruppe wrote: On Tuesday, 28 November 2017 at 04:52:52 UTC, bauss wrote: You're not measuring what you think for the Java program. Did you calculate the runtime and JIT initialization time and subtracted that from the actual execution time?

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #6 from

Re: UDAs on Enum Members: Does it require a DIP?

2017-11-28 Thread John via Digitalmars-d
On Tuesday, 28 November 2017 at 01:49:19 UTC, Jonathan M Davis wrote: On Tuesday, November 28, 2017 00:15:24 John via Digitalmars-d wrote: On Monday, 27 November 2017 at 17:48:35 UTC, Andrei Alexandrescu wrote: > Hi Mike, this forum is not an appropriate place for > requesting official

Re: Unit Testing in Action

2017-11-28 Thread John Carter via Digitalmars-d-announce
On Friday, 20 October 2017 at 14:04:25 UTC, Mike Parker wrote: https://dlang.org/blog/2017/10/20/unit-testing-in-action/ I'm somewhat late to this party but anyway, here is my two cents on the way Unit testing needs to be tweaked. One of the values of Unit Testing is Defect

Re: Floating point types default to NaN?

2017-11-28 Thread Michael V. Franklin via Digitalmars-d-learn
On Monday, 27 November 2017 at 23:05:55 UTC, Michael V. Franklin wrote: I think I'm going to implement a feature gate to require explicit initialization. It would be better to be strict up front and relax it as flow control analysis becomes more mature. Well, I implemented it

Re: First Impressions!

2017-11-28 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 28 November 2017 at 19:34:27 UTC, A Guy With an Opinion wrote: I take it adding those inverse attributes is no trivial thing? Technically, it is extremely trivial. Politically, that's a different matter. There's been arguments before about the words or the syntax (is it "@gc" or

Re: First Impressions!

2017-11-28 Thread Michael V. Franklin via Digitalmars-d
On Tuesday, 28 November 2017 at 19:34:27 UTC, A Guy With an Opinion wrote: I take it adding those inverse attributes is no trivial thing? It would require a DIP: https://github.com/dlang/DIPs This DIP is related (https://github.com/dlang/DIPs/blob/master/DIPs/DIP1012.md) but I don't know

Re: Attributes on Enum Members: Call for use cases.

2017-11-28 Thread Meta via Digitalmars-d
On Tuesday, 28 November 2017 at 02:20:15 UTC, Michael V. Franklin wrote: On Sunday, 19 November 2017 at 13:35:13 UTC, Michael V. Franklin wrote: What's the official word? Does it require a DIP? For those who might want to know, Walter has informed me that this change will require a DIP.

Re: First Impressions!

2017-11-28 Thread A Guy With an Opinion via Digitalmars-d
On Tuesday, 28 November 2017 at 16:24:56 UTC, Adam D. Ruppe wrote: That doesn't quite work since it doesn't descend into aggregates. And you can't turn most them off. I take it adding those inverse attributes is no trivial thing?

Re: Email validation

2017-11-28 Thread Vino via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 18:51:50 UTC, Rene Zwanenburg wrote: On Tuesday, 28 November 2017 at 18:47:06 UTC, Vino wrote: Hi All, You can do this easily using the std.net.isemail module: https://dlang.org/phobos/std_net_isemail.html Hi Rene, Can you provide me a example, as the link

Problems with ctRegex

2017-11-28 Thread crimaniak via Digitalmars-d-learn
First problem: it doesn't understand enums, it seems to be a bug: ``` enum TopicMask : string { divider = "/", oneLevelMask = "+", multiLevelMask = "#", system = "$", level = "[^"~divider~oneLevelMask~multiLevelMask~"]*", publishMask =

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread Manuel Maier via Digitalmars-d
On Tuesday, 28 November 2017 at 17:25:35 UTC, Jacob Carlborg wrote: On 2017-11-28 10:09, Atila Neves wrote: Thanks for the work. And ugh about the installer requiring user intervention, I was literally just about to write a script to install dmd on a Windows dev box, remembered I saw

Re: Email validation

2017-11-28 Thread Rene Zwanenburg via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 18:47:06 UTC, Vino wrote: Hi All, You can do this easily using the std.net.isemail module: https://dlang.org/phobos/std_net_isemail.html

Email validation

2017-11-28 Thread Vino via Digitalmars-d-learn
Hi All, Can you please provide me some example on who to validate an email address as the document dose not have an example for the same Ex: vino.bhee...@hotmail.com Conditions : The domain should contain only "hotmail.com" The email address should contain the symbol "@" From, Vino.B

Re: Reading a File

2017-11-28 Thread Vino via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 18:34:51 UTC, Steven Schveighoffer wrote: On 11/28/17 1:10 PM, Vino wrote: Hi All,   Need your help, I have file which contains 3 lines, I need to ignore the line's which does not have the sign "=", in the blow example the 3rd  line(FileName2) and store the

Re: Reading a File

2017-11-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/28/17 1:10 PM, Vino wrote: Hi All,   Need your help, I have file which contains 3 lines, I need to ignore the line's which does not have the sign "=", in the blow example the 3rd  line(FileName2) and store the result in a array, I was able to ignore the line which contains '#" and

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 --- Comment #5 from Steven Schveighoffer --- std.file.getSize works because it *does* use WinAPI directly. std.stdio.File is based completely on libc's FILE * structure. It can only support whatever that supports, and that

Re: Website down: code.dlang.org

2017-11-28 Thread Paolo Invernizzi via Digitalmars-d
On Tuesday, 28 November 2017 at 15:33:39 UTC, Jack Stouffer wrote: On Monday, 27 November 2017 at 10:20:17 UTC, Chris wrote: There seems to be a problem with http://code.dlang.org/ at the moment (27.11.) Down again. And so it was my CI pipeline... /P

Reading a File

2017-11-28 Thread Vino via Digitalmars-d-learn
Hi All, Need your help, I have file which contains 3 lines, I need to ignore the line's which does not have the sign "=", in the blow example the 3rd line(FileName2) and store the result in a array, I was able to ignore the line which contains '#" and empty lines , but need to help on how

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 --- Comment #4 from krzaq --- std.file.getSize works correctly in my case. The thing is, I read this big file (using struct File and then byChunk) and I am getting all the data correctly - only the size returned

Re: SublimeLinter-contrib-dmd: dmd feedback as you type

2017-11-28 Thread Manuel Maier via Digitalmars-d-announce
On Monday, 27 November 2017 at 11:26:51 UTC, Bastiaan Veelo wrote: On Sunday, 26 November 2017 at 10:15:05 UTC, Manuel Maier wrote: On Monday, 30 October 2017 at 22:22:42 UTC, Bastiaan Veelo wrote: [...] Unlike linters that are based on DScanner, it actually invokes dmd on the file that is

[Issue 18018] New: Locale not available when linking against snn.lib

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18018 Issue ID: 18018 Summary: Locale not available when linking against snn.lib Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 --- Comment #3 from Steven Schveighoffer --- Nevertheless, it's still a bug, as File.size using ulong as its return seems to suggest it can handle it. Note, there's also std.file.getSize:

Re: Attributes on Enum Members: Call for use cases.

2017-11-28 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, November 28, 2017 18:24:27 Jacob Carlborg via Digitalmars-d wrote: > On 2017-11-28 03:20, Michael V. Franklin wrote: > > For those who might want to know, Walter has informed me that this > > change will require a DIP. > > That's unfortunate. It should be the opposite, a DIP on why

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 --- Comment #2 from krzaq --- Getting -m64 to work requires non-zero effort and even then isn't hassle-free. I used this as a workaround instead: ulong getFileSize(const string name) { import std.utf;

Re: First Impressions!

2017-11-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-28 17:24, Adam D. Ruppe wrote: That doesn't quite work since it doesn't descend into aggregates. And you can't turn most them off. And if your project is a library. -- /Jacob Carlborg

Re: Thoughts about D

2017-11-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-28 00:13, Walter Bright wrote: I suppose I should write one :-) It was a very satisfying project. I'm looking at converting all my C projects still in use (like 'make') to D. BetterC has removed the last barriers to it. Why would druntime be a barrier for you for those projects?

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-28 10:09, Atila Neves wrote: Thanks for the work. And ugh about the installer requiring user intervention, I was literally just about to write a script to install dmd on a Windows dev box, remembered I saw something about chocolatey in the NG, and came here to read. Not happy with

Re: Attributes on Enum Members: Call for use cases.

2017-11-28 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-28 03:20, Michael V. Franklin wrote: For those who might want to know, Walter has informed me that this change will require a DIP. That's unfortunate. It should be the opposite, a DIP on why enum members should not support attributes. It goes against consistency (turtles all the

Re: First Impressions!

2017-11-28 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 28 November 2017 at 04:19:40 UTC, A Guy With an Opinion wrote: On Tuesday, 28 November 2017 at 04:17:18 UTC, A Guy With an Opinion wrote: [...] Also, C and C++ didn't just have undefined behavior, sometimes it has inconsistent behavior. Sometimes int a; is actually set to 0.

Re: First Impressions!

2017-11-28 Thread Patrick Schluter via Digitalmars-d
On Tuesday, 28 November 2017 at 04:17:18 UTC, A Guy With an Opinion wrote: On Tuesday, 28 November 2017 at 04:12:14 UTC, ketmar wrote: A Guy With an Opinion wrote: That is true, but I'm still unconvinced that making the person's program likely to error is better than initializing a number to

Re: We're looking for a Software Developer! (D language)

2017-11-28 Thread Alex Brown via Digitalmars-d-announce
If you are looking for a cost effective solution, you may want to consider outsourcing. This article may be pretty informative for you - https://diceus.com/why-you-should-open-outsourcing-centers-in-ukraine-nowadays/ . If there are some functions which your business cannot complete effectively

Re: R.filter!(..).sort!(..)

2017-11-28 Thread Timoses via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 14:04:40 UTC, Steven Schveighoffer wrote: Would be an awesome project to add to D. Oh yes, it sounds yummy..

Re: We're looking for a Software Developer! (D language)

2017-11-28 Thread Alex via Digitalmars-d-announce
hi there

Re: Basic questions about D lang?

2017-11-28 Thread Ali Çehreli via Digitalmars-d-learn
On 11/28/2017 05:51 AM, Jayam wrote: > Can we compile our program to multi platform? Most definitely! D is great in multi-threaded programming. (I hope that was the question. :) ) Ali

Re: First Impressions!

2017-11-28 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 28 November 2017 at 16:14:52 UTC, Jack Stouffer wrote: You can do it on a per-file basis by putting the attributes at the top like so That doesn't quite work since it doesn't descend into aggregates. And you can't turn most them off.

Re: First Impressions!

2017-11-28 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 28 November 2017 at 03:01:33 UTC, A Guy With an Opinion wrote: - Attributes. I had another post in the Learn forum about attributes which was unfortunate. At first I was excited because it seems like on the surface it would help me write better code, but it gets a little tedious

Re: First Impressions!

2017-11-28 Thread A Guy With an Opinion via Digitalmars-d
On Tuesday, 28 November 2017 at 13:17:16 UTC, Steven Schveighoffer wrote: https://github.com/schveiguy/dcollections On Tuesday, 28 November 2017 at 03:37:26 UTC, rikki cattermole wrote: https://github.com/economicmodeling/containers Thanks. I'll check both out. It's not that I don't want

Re: Website down: code.dlang.org

2017-11-28 Thread Jack Stouffer via Digitalmars-d
On Monday, 27 November 2017 at 10:20:17 UTC, Chris wrote: There seems to be a problem with http://code.dlang.org/ at the moment (27.11.) Down again.

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 Steven Schveighoffer changed: What|Removed |Added Severity|enhancement |normal --

[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 Steven Schveighoffer changed: What|Removed |Added CC|

Re: First Impressions!

2017-11-28 Thread A Guy With an Opinion via Digitalmars-d
On Tuesday, 28 November 2017 at 13:17:16 UTC, Steven Schveighoffer wrote: This is likely because of Adam's suggestion -- you were incorrectly declaring a function that returned an immutable like this: immutable T foo(); -Steve That's exactly what it was I think. As I stated before, I

[Issue 18017] New: File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18017 Issue ID: 18017 Summary: File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB) Product: D Version: D2

Re: Basic questions about D lang?

2017-11-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/28/17 8:52 AM, Jayam wrote: On Tuesday, 28 November 2017 at 13:42:05 UTC, Stefan Koch wrote: On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote: Is D language open source? Do this have GUI Desktop application support ? Do this have web api support ? Can we compile our program to

Re: R.filter!(..).sort!(..)

2017-11-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/28/17 8:57 AM, Arjan wrote: On Tuesday, 28 November 2017 at 13:24:09 UTC, Steven Schveighoffer wrote: On 11/28/17 8:10 AM, Arjan wrote: [...] The library is correctly telling you that your filtered range is not random access. It can't be, because it lazily applies the filter (that

Re: First Impressions!

2017-11-28 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 28 November 2017 at 03:01:33 UTC, A Guy With an Opinion wrote: So those are just some of my thoughts. Tell me why I'm wrong :P You are not supposed to come to this forum with well-balanced opinions and reasonable arguments. It's not colourful enough to be heard! Instead make a

Re: R.filter!(..).sort!(..)

2017-11-28 Thread Arjan via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 13:24:09 UTC, Steven Schveighoffer wrote: On 11/28/17 8:10 AM, Arjan wrote: [...] The library is correctly telling you that your filtered range is not random access. It can't be, because it lazily applies the filter (that is, it filters on each element as you

Re: Basic questions about D lang?

2017-11-28 Thread Jayam via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 13:42:05 UTC, Stefan Koch wrote: On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote: Is D language open source? Do this have GUI Desktop application support ? Do this have web api support ? Can we compile our program to multi program ? yes yes some

Re: Basic questions about D lang?

2017-11-28 Thread Jayam via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 13:42:08 UTC, rikki cattermole wrote: On 28/11/2017 1:39 PM, Jayam wrote: Is D language open source? Yes 100% Do this have GUI Desktop application support ? Sure but probably not to the level you expect. Do this have web api support ? Ugh what? Be more

Re: Basic questions about D lang?

2017-11-28 Thread rikki cattermole via Digitalmars-d-learn
On 28/11/2017 1:39 PM, Jayam wrote: Is D language open source? Yes 100% Do this have GUI Desktop application support ? Sure but probably not to the level you expect. Do this have web api support ? Ugh what? Be more specific. Can we compile our program to multi program ? Okay that

Re: Basic questions about D lang?

2017-11-28 Thread Stefan Koch via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 13:39:11 UTC, Jayam wrote: Is D language open source? Do this have GUI Desktop application support ? Do this have web api support ? Can we compile our program to multi program ? yes yes some (dlang-ui for example) yes some (vibe.d or arsd) I don't know what you

Basic questions about D lang?

2017-11-28 Thread Jayam via Digitalmars-d-learn
Is D language open source? Do this have GUI Desktop application support ? Do this have web api support ? Can we compile our program to multi program ?

Re: R.filter!(..).sort!(..)

2017-11-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/28/17 8:10 AM, Arjan wrote: When applying a sort!() on a filtered range I get this compiler error: Error: template std.algorithm.sorting.sort cannot deduce function from argument types !((a, b) => a.name < b.name)(FilterResult!(__lambda3, RangeT!(Array!(IssueType, candidates are:

Re: R.filter!(..).sort!(..)

2017-11-28 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 13:10:15 UTC, Arjan wrote: Iaw is the compiler error msg wrong? Or i'm I wrong? filter isn't random access because it doesn't even know how many elements are in there, much less where they are, until it loops through and does the comparisons to know which

Re: First Impressions!

2017-11-28 Thread Steven Schveighoffer via Digitalmars-d
On 11/27/17 10:01 PM, A Guy With an Opinion wrote: Hi, Hi Guy, welcome, and I wanted to say I was saying "me too" while reading much of your post. I worked on a C# based client/server for about 5 years, and the biggest thing I agree with you on is the generic programming. I was also using D

R.filter!(..).sort!(..)

2017-11-28 Thread Arjan via Digitalmars-d-learn
When applying a sort!() on a filtered range I get this compiler error: Error: template std.algorithm.sorting.sort cannot deduce function from argument types !((a, b) => a.name < b.name)(FilterResult!(__lambda3, RangeT!(Array!(IssueType, candidates are:

Re: D program in Windows Task Scheduler.

2017-11-28 Thread rjframe via Digitalmars-d-learn
On Tue, 28 Nov 2017 09:44:39 +, Vino wrote: > Hi All, > > I have small D program which run's perfectly when i run it > manually, but when I schedule the same via windows task scheduler and > choose the option "Run whether user is logged on or not" the program > does not execute, the task

[Issue 16694] ICE on taking address of `export` function (declaration-only)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16694 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/3ae9f7207a0f4bb76cb8260fe82969211556dd0a Fix Issue 16694 - ICE taking address of exported function

[Issue 16694] ICE on taking address of `export` function (declaration-only)

2017-11-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16694 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: tour.dlang.org is less than useless

2017-11-28 Thread Seb via Digitalmars-d
On Tuesday, 28 November 2017 at 08:32:40 UTC, Mengu wrote: On Tuesday, 28 November 2017 at 02:08:24 UTC, codephantom wrote: Why do we have this link? https://tour.dlang.org I cannot recall it ever working. (is it just something at my end?) What is it meant to take us to? it is most

Re: Thoughts about D

2017-11-28 Thread Walter Bright via Digitalmars-d
On 11/28/2017 2:57 AM, Guillaume Piolat wrote: On Tuesday, 28 November 2017 at 06:12:19 UTC, Walter Bright wrote: Yes, I've thought about making dmc++ 64 bit, but there'd be a fair amount of work (mostly upgrading SNN to 64 bits.) Could I help with that? I'm familiar with x86 assembly,

Re: Tried C++ to D. Wrong result.

2017-11-28 Thread Dmitry via Digitalmars-d-learn
On Tuesday, 28 November 2017 at 09:01:47 UTC, Temtaime wrote: https://pastebin.com/xJXPBh0n Converted it and it works as expected. What did you use for it? In future I'll be needed to convert some more C++ code. P.S. /And it works wrong, because uses unsafe pointer (ubyte *image). So, it

Re: Thoughts about D

2017-11-28 Thread Guillaume Piolat via Digitalmars-d
On Tuesday, 28 November 2017 at 06:12:19 UTC, Walter Bright wrote: Yes, I've thought about making dmc++ 64 bit, but there'd be a fair amount of work (mostly upgrading SNN to 64 bits.) Could I help with that? I'm familiar with x86 assembly, including "mixed" one that use the same source for

D program in Windows Task Scheduler.

2017-11-28 Thread Vino via Digitalmars-d-learn
Hi All, I have small D program which run's perfectly when i run it manually, but when I schedule the same via windows task scheduler and choose the option "Run whether user is logged on or not" the program does not execute, the task scheduler job log return code 4294967295(Invalid

Re: Thoughts about D

2017-11-28 Thread Walter Bright via Digitalmars-d
On 11/27/2017 11:26 PM, Paulo Pinto wrote: Yes, the new MSVCRT.dll, is implemented in C++. https://blogs.msdn.microsoft.com/vcblog/2014/06/10/the-great-c-runtime-crt-refactoring/ After Midori and Longhorn's failure, there has been a migration effort to slowly get rid of C and focus on C++

Re: Thoughts about D

2017-11-28 Thread Ola Fosheim Grostad via Digitalmars-d
On Tuesday, 28 November 2017 at 06:58:58 UTC, Elronnd wrote: In that case, why is libstdc++ 12MB, while libphobos2 is half the size, at 5.5MB? I havent checked, if true then probably because it contains code that goes beyond the minimal requirements (legacy, bloat, portability, tuning, etc).

Re: Thoughts about D

2017-11-28 Thread Walter Bright via Digitalmars-d
On 11/27/2017 10:24 PM, Dmitry Olshansky wrote: On Tuesday, 28 November 2017 at 06:12:19 UTC, Walter Bright wrote: On 11/27/2017 9:11 PM, rikki cattermole wrote: On 28/11/2017 5:03 AM, Walter Bright wrote: On 11/27/2017 6:55 PM, John wrote: Should add optlink to that list, would love to see

Re: Chocolatey Packages for DMD, LDC, and GDC

2017-11-28 Thread Atila Neves via Digitalmars-d
On Saturday, 25 November 2017 at 23:38:06 UTC, Manuel Maier wrote: As some of you may know, there is a dmd package on the chocolatey community feed: https://chocolatey.org/packages/dmd [...] Thanks for the work. And ugh about the installer requiring user intervention, I was literally just

  1   2   >