Re: Beta 2.089.0

2019-10-27 Thread baz via Digitalmars-d-announce
On Sunday, 27 October 2019 at 16:38:30 UTC, baz wrote: On Sunday, 27 October 2019 at 15:04:34 UTC, drug wrote: 27.10.2019 17:20, baz пишет: On Sunday, 27 October 2019 at 12:59:52 UTC, baz wrote: On Thursday, 17 October 2019 at 06:02:33 UTC, Martin Nowak wrote: As usual please report any bugs

Re: Beta 2.089.0

2019-10-27 Thread baz via Digitalmars-d-announce
On Sunday, 27 October 2019 at 15:04:34 UTC, drug wrote: 27.10.2019 17:20, baz пишет: On Sunday, 27 October 2019 at 12:59:52 UTC, baz wrote: On Thursday, 17 October 2019 at 06:02:33 UTC, Martin Nowak wrote: As usual please report any bugs at https://issues.dlang.org -Martin Hi, I've tested

Re: Beta 2.089.0

2019-10-27 Thread baz via Digitalmars-d-announce
On Sunday, 27 October 2019 at 12:59:52 UTC, baz wrote: On Thursday, 17 October 2019 at 06:02:33 UTC, Martin Nowak wrote: As usual please report any bugs at https://issues.dlang.org -Martin Hi, I've tested my old stuff and found 2 regs. One deprecation in phobos due to Nullable.get and that

Re: Beta 2.089.0

2019-10-27 Thread baz via Digitalmars-d-announce
On Thursday, 17 October 2019 at 06:02:33 UTC, Martin Nowak wrote: As usual please report any bugs at https://issues.dlang.org -Martin Hi, I've tested my old stuff and found 2 regs. One deprecation in phobos due to Nullable.get and that was not detected and some weird linking errors, maybe

Re: undefined symbol: _D3std7variant...

2019-10-23 Thread baz via Digitalmars-d-learn
On Tuesday, 22 October 2019 at 13:07:54 UTC, Andrey wrote: On Tuesday, 22 October 2019 at 12:57:45 UTC, Daniel Kozak wrote: Have you try to clean all caches? Try to remove .dub folder I removed .dub folder but this error appears again. Try the "-allinst" option. It's possibly a bug with

Re: with and shadowing variables

2018-07-23 Thread baz via Digitalmars-d
On Sunday, 22 July 2018 at 12:13:43 UTC, Anonymouse wrote: I'm hesitant to file a bug because it'll just be immediately closed with a link to https://dlang.org/spec/statement.html#WithStatement. I understand that's how it works, but it's weird and weak to human mistakes. IMO the only

Re: crash when using in struct constructor

2018-07-18 Thread baz via Digitalmars-d-learn
On Wednesday, 18 July 2018 at 11:35:40 UTC, baz wrote: On Wednesday, 18 July 2018 at 11:27:33 UTC, baz@dlang-community wrote: On Monday, 16 July 2018 at 22:21:12 UTC, H. S. Teoh wrote: On Mon, Jul 16, 2018 at 10:08:34PM +, Eric via Digitalmars-d-learn wrote: [...] It's not illegal per

Re: crash when using in struct constructor

2018-07-18 Thread baz via Digitalmars-d-learn
On Wednesday, 18 July 2018 at 11:27:33 UTC, baz@dlang-community wrote: On Monday, 16 July 2018 at 22:21:12 UTC, H. S. Teoh wrote: On Mon, Jul 16, 2018 at 10:08:34PM +, Eric via Digitalmars-d-learn wrote: [...] It's not illegal per se, but a very, very bad idea in general, because in D,

Re: Encouraging preliminary results implementing memcpy in D

2018-06-14 Thread baz via Digitalmars-d-announce
On Thursday, 14 June 2018 at 17:27:27 UTC, Patrick Schluter wrote: On Wednesday, 13 June 2018 at 06:46:43 UTC, Mike Franklin wrote: I had a little fun today kicking the crap out of C's memcpy with a D implementation. https://github.com/JinShil/memcpyD Request for help: I don't have a Linux

Re: Why does this script BSOD-ize windows ?

2015-07-21 Thread Baz via Digitalmars-d-learn
On Tuesday, 21 July 2015 at 10:28:27 UTC, Rikki Cattermole wrote: On 21/07/2015 10:14 p.m., Baz wrote: --- import std.process; import core.thread; import std.random; void main(string[] args) { string on = netsh interface set interface \Connexion au réseau local\ Enable; string off

Why does this script BSOD-ize windows ?

2015-07-21 Thread Baz via Digitalmars-d-learn
--- import std.process; import core.thread; import std.random; void main(string[] args) { string on = netsh interface set interface \Connexion au réseau local\ Enable; string off = netsh interface set interface \Connexion au réseau local\ Disable; while(true) {

Re: Why does this script BSOD-ize windows ?

2015-07-21 Thread Baz via Digitalmars-d-learn
On Tuesday, 21 July 2015 at 10:41:54 UTC, Kagamin wrote: try this: import std.process, std.stdio; import core.thread; import std.random; void main(string[] args) { string on = netsh interface set interface \Connexion au réseau local\ Enable; string off = netsh interface set interface

Re: Why does this script BSOD-ize windows ?

2015-07-21 Thread Baz via Digitalmars-d-learn
On Tuesday, 21 July 2015 at 11:08:00 UTC, Rikki Cattermole wrote: On 21/07/2015 10:36 p.m., Baz wrote: [...] I'll summarize what my friend is saying. netsh is potentially going away. Don't use it if you can. Since you are using a localized system it, it may be causing issues for the

Re: Virtual value types during compile-time for static type safety, static optimizations and function overloading.

2015-07-17 Thread Baz via Digitalmars-d-learn
On Friday, 17 July 2015 at 21:20:41 UTC, Tamas wrote: Although this code is fully operational, presents nice api and compile-time optimizations, the extra Struct wrapper is not without runtime penalty. Is there a solution that results the same static optimizations, but has no runtime

Re: Linked variables

2015-07-14 Thread Baz via Digitalmars-d-learn
On Monday, 13 July 2015 at 22:07:11 UTC, Tanel Tagaväli wrote: Does the standard library have a way to create a forward link between two variables of the same type? One variable is the source and the other is the sink. When the source variable is changed, the sink variable is too. Changing the

Re: Manually allocate delegate?

2015-07-12 Thread Baz via Digitalmars-d-learn
On Sunday, 12 July 2015 at 09:03:25 UTC, Tofu Ninja wrote: On Sunday, 12 July 2015 at 08:47:37 UTC, ketmar wrote: On Sun, 12 Jul 2015 08:38:00 +, Tofu Ninja wrote: Is it even possible? what do you mean? Sorry, thought the title was enough. The context for a delegate(assuming not a

Re: Manually allocate delegate?

2015-07-12 Thread Baz via Digitalmars-d-learn
On Sunday, 12 July 2015 at 10:39:44 UTC, Tofu Ninja wrote: On Sunday, 12 July 2015 at 10:19:02 UTC, Baz wrote: [...] That is not manually allocating a delegate context, and in that instance does not even allocate. For delegates to class methods, the context is just the this pointer of the

Re: Initial feedback for std.experimental.image

2015-07-06 Thread Baz via Digitalmars-d
On Monday, 6 July 2015 at 13:48:53 UTC, Rikki Cattermole wrote: So as part of my testing of std.experimental.color I began writing an image ala ae.graphics style. It's now ready for very initial feedback. I don't see some things that immediatly come to my mind as usefull when i think to the

Re: Phobos addition formal review: std.experimental.allocator

2015-06-30 Thread Baz via Digitalmars-d
On Tuesday, 30 June 2015 at 06:07:14 UTC, Baz wrote: On Friday, 26 June 2015 at 15:23:25 UTC, Alex Parrill wrote: On Friday, 26 June 2015 at 14:56:21 UTC, Dmitry Olshansky wrote: [...] Yea, VirtualAlloc seems like a better fit. (I don't actually know the windows API that well) [...]

Re: Phobos addition formal review: std.experimental.allocator

2015-06-30 Thread Baz via Digitalmars-d
On Friday, 26 June 2015 at 15:23:25 UTC, Alex Parrill wrote: On Friday, 26 June 2015 at 14:56:21 UTC, Dmitry Olshansky wrote: [...] Yea, VirtualAlloc seems like a better fit. (I don't actually know the windows API that well) [...] Here's the paragraph I'm reading: Mapped views of a

Re: This Week in D #23 - Interview with Dmitry Olshansky, dmd beta, std.experimental.color

2015-06-30 Thread Baz via Digitalmars-d-announce
On Monday, 29 June 2015 at 03:46:55 UTC, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/jun-28.html thx. interesting interview.

Re: Replacement of std.stream

2015-06-28 Thread Baz via Digitalmars-d-learn
On Sunday, 28 June 2015 at 05:04:48 UTC, DlangLearner wrote: I will convert a Java program into D. The original Java code is based on the class RandomeAccessFile which essentially defines a set of methods for read/write Int/Long/Float/String etc. The module std.stream seems to be a good fit

Re: fast way to insert element at index 0

2015-06-23 Thread Baz via Digitalmars-d-learn
On Tuesday, 23 June 2015 at 11:22:31 UTC, Steven Schveighoffer wrote: On 6/23/15 1:51 AM, jkpl wrote: On Tuesday, 23 June 2015 at 05:16:23 UTC, Assembly wrote: [...] * Option 1/ if most of the time you have to insert at the beginning, then start reading from the end and append to the end,

Re: fast way to insert element at index 0

2015-06-23 Thread Baz via Digitalmars-d-learn
On Tuesday, 23 June 2015 at 13:29:41 UTC, Steven Schveighoffer wrote: On 6/23/15 8:12 AM, Baz wrote: On Tuesday, 23 June 2015 at 11:22:31 UTC, Steven Schveighoffer wrote: [...] according to the C library, memmove handle overlapps, you mismatch with memcpy which does not. The above is

Re: Program exited with code -11

2015-06-23 Thread Baz via Digitalmars-d-learn
On Tuesday, 23 June 2015 at 06:50:28 UTC, Charles Hawkins wrote: On Tuesday, 23 June 2015 at 03:31:37 UTC, weaselcat wrote: On Tuesday, 23 June 2015 at 03:29:14 UTC, Charles Hawkins wrote: Thanks, Adam. I'm coming from OCaml and haven't seen a seg fault in years. Didn't recognize it. :D

Re: Walter, Brian, and Daniel's DConf 2015 talks are up

2015-06-23 Thread Baz via Digitalmars-d-announce
On Friday, 19 June 2015 at 22:47:03 UTC, Brad Anderson wrote: Walter: https://www.youtube.com/watch?v=znjesAXEEqw Brian: https://www.youtube.com/watch?v=FmFyB9e7edw Daniel: https://www.youtube.com/watch?v=5daHGXSetXk I've only just started watching but the editing seems to be well done so

Re: Program exited with code -11

2015-06-23 Thread Baz via Digitalmars-d-learn
On Tuesday, 23 June 2015 at 07:25:05 UTC, Baz wrote: in dmd you have to pass - the .lib/.a files a source I meant as source, actually. you pass the .lib or .a file without switch as if it's a main source.

Re: We simply must implement this for D to stay competitive

2015-06-20 Thread Baz via Digitalmars-d
On Saturday, 20 June 2015 at 22:38:30 UTC, Walter Bright wrote: https://github.com/rollbear/basicpp This leads to this classic, the original Bourne shell ALGO-izer macros: http://minnie.tuhs.org/cgi-bin/utree.pl?file=2.11BSD/src/bin/sh/mac.h

Re: Return types of the methods of a struct

2015-06-19 Thread Baz via Digitalmars-d-learn
On Friday, 19 June 2015 at 13:52:54 UTC, Quentin Ladeveze wrote: On Friday, 19 June 2015 at 13:38:45 UTC, Steven Schveighoffer wrote: Does this work for you, or is there a further expectation? auto asTuple() { return Tuple!(int, a, ...)(a, b, stringValue);} -Steve In fact, I was trying

Re: Return types of the methods of a struct

2015-06-19 Thread Baz via Digitalmars-d-learn
On Friday, 19 June 2015 at 13:27:15 UTC, Quentin Ladeveze wrote: On Friday, 19 June 2015 at 13:26:03 UTC, Steven Schveighoffer wrote: On 6/19/15 9:13 AM, Quentin Ladeveze wrote: [...] You can't. The forum is backed by a newsgroup, just post the full corrected version :) -Steve Thank you

Re: Return types of the methods of a struct

2015-06-19 Thread Baz via Digitalmars-d-learn
On Friday, 19 June 2015 at 13:40:01 UTC, Baz wrote: On Friday, 19 June 2015 at 13:27:15 UTC, Quentin Ladeveze wrote: On Friday, 19 June 2015 at 13:26:03 UTC, Steven Schveighoffer wrote: [...] Thank you :) Here is th corrected version : Hi, I have a struct with some methods int it, let's

Re: Extract template parameter at runtime?

2015-06-15 Thread Baz via Digitalmars-d-learn
On Monday, 15 June 2015 at 18:10:34 UTC, Yuxuan Shui wrote: Can is() operate on TypeInfo? yes, you can compare instance of TypeInfo using is or '==' too, using typeid which is returns at run-time the TypeInfo of the argument: --- void main() { assert(typeid(2) == typeid(1));

Re: Casting MapResult

2015-06-15 Thread Baz via Digitalmars-d-learn
On Monday, 15 June 2015 at 15:10:24 UTC, jmh530 wrote: I wrote a simple function to apply map to a float dynamic array auto exp(float[] x) { auto y = x.map!(a = exp(a)); return y; } However, the type of the result is MapResult!(__lambda2, float[]). It seems like some of the

Re: Casting MapResult

2015-06-15 Thread Baz via Digitalmars-d-learn
On Monday, 15 June 2015 at 19:22:31 UTC, jmh530 wrote: On Monday, 15 June 2015 at 19:04:32 UTC, Baz wrote: In addition to the other answers you can use std.algorithm.iteration.each(): --- float[] _exp(float[] x) { auto result = x.dup; result.each!(a = exp(a)); return result; } ---

Re: Casting MapResult

2015-06-15 Thread Baz via Digitalmars-d-learn
On Monday, 15 June 2015 at 19:30:08 UTC, Baz wrote: On Monday, 15 June 2015 at 19:22:31 UTC, jmh530 wrote: On Monday, 15 June 2015 at 19:04:32 UTC, Baz wrote: In addition to the other answers you can use std.algorithm.iteration.each(): --- float[] _exp(float[] x) { auto result = x.dup;

Re: Casting MapResult

2015-06-15 Thread Baz via Digitalmars-d-learn
On Monday, 15 June 2015 at 20:10:30 UTC, jmh530 wrote: I suppose I would want whichever has the best performance. Without testing, I'm not sure which one would be better. Thoughts? I had been fighting with the map results because I didn't realize there was an easy way to get just the array.

Re: Process a TypeTuple

2015-06-14 Thread Baz via Digitalmars-d-learn
On Monday, 15 June 2015 at 03:53:35 UTC, Yuxuan Shui wrote: Is it possible to apply some operation on every member of a TypeTuple, then get the result back? Say I have a TypeTuple of array types, and I want a TypeTuple of their element types, how could I do that? You can do that with

Re: Phobos addition formal review: std.experimental.allocator

2015-06-12 Thread Baz via Digitalmars-d
On Friday, 12 June 2015 at 19:19:55 UTC, Andrei Alexandrescu wrote: On 6/12/15 11:23 AM, Baz wrote: On Friday, 12 June 2015 at 11:09:01 UTC, Dicebot wrote: Small tip for reviewers: there are quite many modules in proposed package but majority is actual allocator implementation. I'd suggest

Re: A Vision on Improved DMD Template Instantiation Diagonostics

2015-06-12 Thread Baz via Digitalmars-d
On Friday, 12 June 2015 at 12:20:58 UTC, Per Nordlöw wrote: After having seen Andrei's Walter's talks on DConf 2015 it's time reveal a dream of mine. It resolves around of feature that I believe is one of the most important improvements that will benefit aggregation of more *new* users to the

Re: Phobos addition formal review: std.experimental.allocator

2015-06-12 Thread Baz via Digitalmars-d
On Friday, 12 June 2015 at 11:09:01 UTC, Dicebot wrote: Small tip for reviewers: there are quite many modules in proposed package but majority is actual allocator implementation. I'd suggest to start investigating sources/documentation starting from

Re: dmd and string imports on Windows

2015-06-10 Thread Baz via Digitalmars-d-learn
On Wednesday, 10 June 2015 at 19:59:17 UTC, Atila Neves wrote: On Linux: foo.d: import std.stdio; void main() { writeln(import(dir/bar.txt)); } dmd -J. foo.d # ok On Windows: Error: file dir/bar.txt cannot be found or not in a path specified with -J I tried the obvious buildPath(dir,

Re: This Week in D #19: Reggae, ranges, and DConf Wed. Afternoon summary

2015-06-08 Thread Baz via Digitalmars-d-announce
On Monday, 8 June 2015 at 19:21:10 UTC, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/jun-07.html These dconf articles are taking a long time to write, hence the lateness again, but here's the rest of Wednesday and some roundup of changes from the forum and pull requests. I was a

Re: forum.dlang.org, version 2 (BETA)

2015-06-04 Thread Baz via Digitalmars-d-announce
On Thursday, 4 June 2015 at 15:04:05 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ Many major and minor improvements. Some major ones: - dlang.org theme, fully responsive and mobile-friendly - keyboard navigation in all views - automatically saved post drafts - get notified of

Re: ImplicitConversionTargets opposite

2015-05-22 Thread Baz via Digitalmars-d-learn
On Thursday, 21 May 2015 at 21:49:55 UTC, Freddy wrote: std.traits has ImplicitConversionTargets. Is there any template that returns the types that can implicty convert to T? You can write something like this: --- import std.stdio; import std.traits; import std.typetuple; void main(string[]

Re: ImplicitConversionTargets opposite

2015-05-22 Thread Baz via Digitalmars-d-learn
the line warping on this forum deserve a big slap in the face...

Re: deserialization: creating a class instance without calling constructor

2015-05-21 Thread Baz via Digitalmars-d-learn
On Thursday, 21 May 2015 at 09:06:59 UTC, Timothee Cour wrote: Can I create an instance of A without calling a constructor? (see below) Use case: for generic deserialiaztion, when the deserialization library encounters a class without default constructor for example (it knows what the fields

Re: [PRs] How to update on Github

2015-05-21 Thread Baz via Digitalmars-d
On Thursday, 21 May 2015 at 10:42:34 UTC, Rikki Cattermole wrote: On 21/05/2015 10:39 p.m., ZombineDev wrote: Basically you need clone your fork to your computer, add a upstream remote to github.com/D-Programming-Language/[repo name, eg. phobos], pull from upstream the new changes and

control flow with a functional template ?

2015-05-18 Thread Baz via Digitalmars-d-learn
who's never had to do this: --- if (comparison) { statement; break; } --- ans then thought it's a pity to open/closes the braces just for a simple statement. Would it be possible to have a template to simplify this to: --- if (comparison) Break!(expression); --- or even at the

Re: mscoff x86 invalid pointers

2015-05-10 Thread Baz via Digitalmars-d-learn
On Sunday, 10 May 2015 at 12:20:39 UTC, Etienne Cimon wrote: On 2015-05-10 03:54, Baz wrote: On Sunday, 10 May 2015 at 04:16:45 UTC, Etienne Cimon wrote: On 2015-05-09 05:44, Baz wrote: On Saturday, 9 May 2015 at 06:21:11 UTC, extrawurst wrote: On Saturday, 9 May 2015 at 00:16:28 UTC,

Re: mscoff x86 invalid pointers

2015-05-10 Thread Baz via Digitalmars-d-learn
On Sunday, 10 May 2015 at 04:16:45 UTC, Etienne Cimon wrote: On 2015-05-09 05:44, Baz wrote: On Saturday, 9 May 2015 at 06:21:11 UTC, extrawurst wrote: On Saturday, 9 May 2015 at 00:16:28 UTC, Etienne wrote: I'm trying to compile a library that I think used to work with -m32mscoff flag

Re: mscoff x86 invalid pointers

2015-05-09 Thread Baz via Digitalmars-d-learn
On Saturday, 9 May 2015 at 06:21:11 UTC, extrawurst wrote: On Saturday, 9 May 2015 at 00:16:28 UTC, Etienne wrote: I'm trying to compile a library that I think used to work with -m32mscoff flag before I reset my machine configurations. https://github.com/etcimon/memutils Whenever I run `dub

Re: Spawning a console in Windows (similar to forkpty on linux)

2015-05-09 Thread Baz via Digitalmars-d-learn
On Saturday, 9 May 2015 at 13:01:27 UTC, wobbles wrote: On Saturday, 9 May 2015 at 13:00:01 UTC, wobbles wrote: On Saturday, 9 May 2015 at 12:48:16 UTC, Kagamin wrote: On Saturday, 9 May 2015 at 12:26:58 UTC, wobbles wrote: What I mean is, if the cmd.exe hasnt flushed it's output, my

Re: Standardpaths library

2015-05-08 Thread Baz via Digitalmars-d-announce
On Sunday, 5 April 2015 at 09:08:14 UTC, FreeSlave wrote: I wrote small library for getting standard paths (like Pictures, Music) Here's dub package http://code.dlang.org/packages/standardpaths And github repo https://github.com/MyLittleRobo/standardpaths You can see open issues on github.

Re: Bitfield-style enum to strings?

2015-05-07 Thread Baz via Digitalmars-d-learn
On Thursday, 7 May 2015 at 17:41:10 UTC, Nick Sabalausky wrote: Assuming a plain old bitfield-style enum like: enum Foo { optionA = 10; optionB = 11; optionC = 12; optionD = 13; optionE = 14; } Does a function already exist somewhere to take an instance of Foo and get a

Re: Does the compiler check for safe?

2015-05-05 Thread Baz via Digitalmars-d-announce
On Tuesday, 5 May 2015 at 21:09:45 UTC, Charles Hixson wrote: It was in announce because I made a mistake in posting. Yes of course, in a safe funct just try to call a non-safe one, to call a delegate or even to cast something and you'll be able to verify that by yourself thanks to the error

error with std.range.put - readN

2015-05-04 Thread Baz via Digitalmars-d
the following program fails because of the `put` function : --- import std.stdio; import std.range; size_t readN(T, Range)(ref Range src, ref Range dst, size_t n) if (isInputRange!Range isOutputRange!(Range, T)) { size_t result; while(1) { if (src.empty || result == n)

Re: Efficiently passing structs

2015-05-03 Thread Baz via Digitalmars-d-learn
On Monday, 4 May 2015 at 01:58:12 UTC, bitwise wrote: The documentation doesn't say anything about in being a reference, but it doesn't say that out parameters are references either, even though it's usage in the example clearly shows that it is. Thanks, Bit

why std.process.Pid std.process.Environment are classes ?

2015-05-02 Thread Baz via Digitalmars-d-learn
In std.process, the following declarations: - final class Pid - abstract final class environment could be struct, couldn't they ? Any particular reason behind this choice ?

Re: Readonly-to-outside variable

2015-04-28 Thread Baz via Digitalmars-d-learn
On Tuesday, 28 April 2015 at 19:30:06 UTC, tcak wrote: Is there any way to define a variable or an attribute as read-only without defining a getter function/method for it? Thoughts behind this question are: 1. For every reading, another function call process for CPU while it could directly

Re: Cannot build dmd due to sc.ini issue

2015-04-28 Thread Baz via Digitalmars-d
On Tuesday, 28 April 2015 at 02:27:00 UTC, Andre Tampubolon wrote: I decided to wipe my dmd directory (too messy), and replaced it with the latest one (http://downloads.dlang.org/releases/2.x/2.067.1/dmd.2.067.1.windows.zip). After that, I adjusted the bin directory, and sc.ini as well:;

Re: Cleaned up C++

2015-04-26 Thread Baz via Digitalmars-d
On Sunday, 26 April 2015 at 12:04:20 UTC, Laeeth Isharc wrote: On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote: On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote: I should put in in a d-idioms anyway. http://p0nce.github.io/d-idioms/#How-does-D-improve-on-C++17? excellent.

Re: [hackathlon] stdc ddoc needed ?

2015-04-26 Thread Baz via Digitalmars-d
On Sunday, 26 April 2015 at 21:23:24 UTC, Baz wrote: pubs.opengroup.org/onlinepubs/009695399/basedefs/_ctype.h.html while it seems to be now: pubs.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h i was wrong. new links are for the specifications issue 7 but core.stdc API is well

Re: [hackathlon] stdc ddoc needed ?

2015-04-26 Thread Baz via Digitalmars-d
On Sunday, 26 April 2015 at 20:45:32 UTC, Walter Bright wrote: On 4/26/2015 11:38 AM, Baz wrote: Hi, is it worth documenting stdc ? No. In general, D should not be re-documenting APIs where the documentation exists elsewhere, because: 1. have to rewrite it because of copyright 2. such

[hackathlon] stdc ddoc needed ?

2015-04-26 Thread Baz via Digitalmars-d
Hi, is it worth documenting stdc ? I'm about to copy all the docs from offical sources, e.g http://www.cplusplus.com/reference/cctype/. There's been a post from W.B a few weeks ago about undocumented sources. I don't remember if it included stdc.

Re: std.json questions

2015-04-25 Thread Baz via Digitalmars-d-learn
On Saturday, 25 April 2015 at 09:56:25 UTC, tired_eyes wrote: I think this is ugly and clunky approach, what is the beautiful one? What you clearly need is a serializer: look at these: http://wiki.dlang.org/Libraries_and_Frameworks#Serialization and also:

Re: Performance of loops

2015-04-24 Thread Baz via Digitalmars-d
On Friday, 24 April 2015 at 11:00:23 UTC, Chris wrote: I tested the performance of three types of loops (see code below). It turns out that the fastest loop is the plainLoop. Unless my examples are completely screwed up, the difference between plainLoop and the other two loops is gigantic

Re: Weird link error

2015-04-20 Thread Baz via Digitalmars-d-learn
On Monday, 20 April 2015 at 17:02:18 UTC, CodeSun wrote: And where I can find the D symbol definition, because information like ‘_D2tt2Ti12__T3getTAyaZ3getMFAyaZAya’ makes me really confused. --- import std.demangle; auto friendlySymbol = demangle(_D2tt2Ti12__T3getTAyaZ3getMFAyaZAya); ---

Re: EMSI is hiring a D developer

2015-04-15 Thread Baz via Digitalmars-d-announce
On Wednesday, 15 April 2015 at 08:32:10 UTC, wobbles wrote: On Wednesday, 15 April 2015 at 07:27:51 UTC, Abdulhaq wrote: On Tuesday, 14 April 2015 at 16:17:37 UTC, Justin Whear wrote: EMSI is hiring for an Engineer II to work on D codebases: https:// emsi.bamboohr.com/jobs/view.php?id=30

Re: cdb reader and creator

2015-04-14 Thread Baz via Digitalmars-d-announce
On Monday, 13 April 2015 at 21:34:36 UTC, ketmar wrote: here is Cdb[1] reader and creator, in two small modules. reader: [2] creator: [3] sample: [4] it's totally untested, but i believe that is works. at least for the given sample. Public Domain, based on tinycdb[5]. [1]

why cant function parameters be grouped by type ?

2015-04-12 Thread Baz via Digitalmars-d-learn
Hi, while variable declarations work in list: uint a,b,c; function parameters declarations don't: void foo(uint a,b,c); Because of this, function declarations are sometimes super-wide. (despite of the fact that: http://www.brainyquote.com/quotes/quotes/a/alanperlis177279.html) In the

Re: Coedit - beta 1 released

2015-04-12 Thread Baz via Digitalmars-d-announce
On Wednesday, 8 April 2015 at 20:07:42 UTC, Kelet wrote: On Wednesday, 8 April 2015 at 17:58:18 UTC, Kelet wrote: On Tuesday, 7 April 2015 at 05:45:16 UTC, Baz wrote: I'm pleased to announce the first beta of Coedit, the small IDE for the D programming language, based on DMD. This version

Coedit - beta 1 released

2015-04-06 Thread Baz via Digitalmars-d-announce
I'm pleased to announce the first beta of Coedit, the small IDE for the D programming language, based on DMD. This version introduces: - the option editor. - metad, a meta GIT repository composed of static libraries easily buildable with Coedit. - DCD integration: call tips and DDoc comments

Re: OpenVG bindings

2015-04-04 Thread Baz via Digitalmars-d-announce
On Friday, 3 April 2015 at 22:53:51 UTC, ddos wrote: Hi folks, today i've created my first dlang library ^_^ a binding to the OpenVG library standard. The referenced implementation is ShivaVG which allows to draw vector graphics within an OpenGL context (similar to cairo). A small demo

Re: Filling out the wiki - D as a second language

2015-03-31 Thread Baz via Digitalmars-d
On Tuesday, 31 March 2015 at 08:36:00 UTC, Jacob Carlborg wrote: On 2015-03-31 04:18, Andrei Alexandrescu wrote: Thanks for this initiative. It would be indeed awesome if this got a bit more attention. Once we get the portal fleshed out, we can promote the link to the homepage. One note

Re: Travis CI based tests based on 2.066.1 start failing

2015-03-31 Thread Baz via Digitalmars-d
On Tuesday, 31 March 2015 at 09:52:34 UTC, Baz wrote: @MartinNowak, @klickverbot and @ibuclaw Is is time for 2.067 ? source: https://github.com/kiith-sa/dmarkdown/pull/6

Re: std.reflection prototype

2015-03-31 Thread Baz via Digitalmars-d
On Monday, 30 March 2015 at 01:11:55 UTC, bitwise wrote: I came across this post a while back and decided to implement it: http://forum.dlang.org/thread/juf7sk$16rl$1...@digitalmars.com My implementation: https://github.com/bitwise-github/D-Reflection The above conversation seemed to stop

Travis CI based tests based on 2.066.1 start failing

2015-03-31 Thread Baz via Digitalmars-d
@MartinNowak, @klickverbot and @ibuclaw Is is time for 2.067 ?

Re: Travis CI based tests based on 2.066.1 start failing

2015-03-31 Thread Baz via Digitalmars-d
On Tuesday, 31 March 2015 at 12:31:14 UTC, Mathias Lang wrote: Importing std.algorithm.searching won't work before. A static if (__VERSION__ = 2067) / else would solve it. 2015-03-31 13:20 GMT+02:00 Baz via Digitalmars-d digitalmars-d@puremagic.com: On Tuesday, 31 March 2015 at 09:52:34 UTC

Any news from Kiith-Sa ?

2015-03-31 Thread Baz via Digitalmars-d
Kiith-Sa, come back with us !!

Re: Specify an entire directory tree for string imports

2015-03-29 Thread Baz via Digitalmars-d-learn
On Monday, 30 March 2015 at 02:13:22 UTC, Alex Parrill wrote: I have a directory structure like this: . | test.d | \---test | test1.txt | \---subfolder test2.txt I am running test.d using this command:

Re: Format double in decimal notation without trailing zeros after the decimal point

2015-03-28 Thread Baz via Digitalmars-d-learn
On Friday, 27 March 2015 at 15:02:19 UTC, akaDemik wrote: The task seemed very simple. But I'm stuck. I want to: 1234567890123.0 to 1234567890123 1.23 to 1.23 1.234567 to 1.2346. With format string %.4f i get 1.2300 for 1.23. With %g i get 1.23456789e+12 for 1234567890123.0. I can not

Re: Associative Array of Const Objects?

2015-03-28 Thread Baz via Digitalmars-d-learn
On Friday, 27 March 2015 at 21:33:19 UTC, bitwise wrote: class Test{} void main() { const(Test)[string] tests; tests[test] = new Test(); } This code used to work, but after upgrading to dmd 2.067, it no longer does. --Error: cannot modify const expression tests[test] How do

Re: Release D 2.067.0

2015-03-24 Thread Baz via Digitalmars-d-announce
thx for the release. i's just like to point a problem with the distribution of the local html doc: https://issues.dlang.org/show_bug.cgi?id=14329

Re: PrimitiveRef ?

2015-03-23 Thread Baz via Digitalmars-d-learn
On Monday, 23 March 2015 at 16:58:49 UTC, Andre wrote: Hi, (needed for specifying reference behavior in a type tuple). I need exactly that behavior. I am currently unsure whether it is possible at all to have such a construct which works at user side exactly like a boolean (booleans can be

Re: Text UI for D?

2015-03-20 Thread Baz via Digitalmars-d-learn
On Friday, 20 March 2015 at 10:29:45 UTC, DLearner wrote: Does D have a recommended package for this - like (n)curses for C? I cannot recommend it because i've just found the package, it like Pascal turbo vision but in D. https://github.com/bbodi/dvision A few years ago someine else

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-18 Thread Baz via Digitalmars-d
On Wednesday, 18 March 2015 at 22:05:18 UTC, Brian Schott wrote: On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be

Re: Replace core language HexStrings with library entity

2015-03-17 Thread Baz via Digitalmars-d
On Tuesday, 17 March 2015 at 21:06:04 UTC, Artur Skawina wrote: On 03/17/15 20:47, deadalnix via Digitalmars-d wrote: Not that much. But q{ string are a pain in the ass. Why? I'm not sure if you're referring to using or parsing them. The only problem with the former is the lack of a

Re: Release Candidate D 2.067.0-rc1

2015-03-17 Thread Baz via Digitalmars-d-announce
On Tuesday, 17 March 2015 at 15:49:48 UTC, Baz wrote: On Monday, 16 March 2015 at 21:38:22 UTC, Martin Nowak wrote: Release Candidate for 2.067.0 http://downloads.dlang.org/pre-releases/2.x/2.067.0/ http://ftp.digitalmars.com/ You can get the binaries here until they are mirrored.

Re: Replace core language HexStrings with library entity

2015-03-17 Thread Baz via Digitalmars-d
On Tuesday, 17 March 2015 at 21:31:58 UTC, Artur Skawina wrote: On 03/17/15 22:18, Baz via Digitalmars-d wrote: On Tuesday, 17 March 2015 at 21:06:04 UTC, Artur Skawina wrote: On 03/17/15 20:47, deadalnix via Digitalmars-d wrote: Not that much. But q{ string are a pain in the ass. Why? I'm

Re: Replace core language HexStrings with library entity

2015-03-17 Thread Baz via Digitalmars-d
On Monday, 16 March 2015 at 21:32:45 UTC, Baz wrote: On Monday, 16 March 2015 at 16:45:25 UTC, Andrei Alexandrescu wrote: On 3/16/15 9:29 AM, Baz wrote: On Sunday, 15 March 2015 at 21:41:06 UTC, bearophile wrote: Walter Bright: Unfortunately, it needs to be a dropin replacement for x...,

Re: Release Candidate D 2.067.0-rc1

2015-03-17 Thread Baz via Digitalmars-d-announce
On Monday, 16 March 2015 at 21:38:22 UTC, Martin Nowak wrote: Release Candidate for 2.067.0 http://downloads.dlang.org/pre-releases/2.x/2.067.0/ http://ftp.digitalmars.com/ You can get the binaries here until they are mirrored. https://dlang.dawg.eu/downloads/dmd.2.067.0-rc1/ We fixed the few

Re: Replace core language HexStrings with library entity

2015-03-17 Thread Baz via Digitalmars-d
On Sunday, 15 March 2015 at 21:40:02 UTC, Walter Bright wrote: On 3/15/2015 2:34 PM, Walter Bright wrote: P.S. Also need to include all the examples in the dlang reference as unittest cases. Also, HexStrings can handle w and d postfixes. Use the lexer.c code for TOK::hexStringConstant() as

Re: Replace core language HexStrings with library entity

2015-03-17 Thread Baz via Digitalmars-d
On Tuesday, 17 March 2015 at 16:55:53 UTC, bearophile wrote: Baz: https://github.com/D-Programming-Language/phobos/pull/3058 I suggest to replace litteral with literal, as in computer science: http://en.wikipedia.org/wiki/Literal_%28computer_programming%29 Bye, bearophile Thx, fixed.

Re: Replace core language HexStrings with library entity

2015-03-16 Thread Baz via Digitalmars-d
On Sunday, 15 March 2015 at 21:41:06 UTC, bearophile wrote: Walter Bright: Unfortunately, it needs to be a dropin replacement for x..., which returns a string/wstring/dstring. This is bad. 99% of the times you don't want a string/wstring/dstring out of a hex string:

Re: Replace core language HexStrings with library entity

2015-03-16 Thread Baz via Digitalmars-d
On Monday, 16 March 2015 at 16:45:25 UTC, Andrei Alexandrescu wrote: On 3/16/15 9:29 AM, Baz wrote: On Sunday, 15 March 2015 at 21:41:06 UTC, bearophile wrote: Walter Bright: Unfortunately, it needs to be a dropin replacement for x..., which returns a string/wstring/dstring. This is bad.

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Baz via Digitalmars-d
On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have shown, they can be easily replaced with a library template: x00 FBCD 32FD 0A becomes:

Re: Replace core language HexStrings with library entity

2015-03-15 Thread Baz via Digitalmars-d
On Sunday, 15 March 2015 at 21:34:22 UTC, Walter Bright wrote: On 3/15/2015 2:18 PM, Baz wrote: On Sunday, 15 March 2015 at 19:47:06 UTC, Walter Bright wrote: HexStrings: http://dlang.org/lex.html#HexString They're rarely used, but very useful when needed. But, as the octal literals have

Re: chaining splitters

2015-03-11 Thread Baz via Digitalmars-d-learn
On Wednesday, 11 March 2015 at 00:00:39 UTC, dnoob wrote: Hello, I am parsing some text and I have the following; string text = some very long text; foreach(line; splitter(text, [13, 10])) { foreach(record; splitter(line, '*')) { foreach(field; splitter(record,

Re: What's the rationale here? alias this and function arguments

2015-03-10 Thread Baz via Digitalmars-d-learn
On Tuesday, 10 March 2015 at 10:27:14 UTC, John Colvin wrote: struct S { int a; this(T)(T v) { this = v; } void foo(T)(T v) { import std.conv : to; a = v.to!int; } alias foo this; }

Re: What Features Should A GUI toolkit have?

2015-03-09 Thread Baz via Digitalmars-d
On Friday, 6 March 2015 at 06:02:17 UTC, Taylor Hillegeist wrote: So I have played with a few GUI libraries with bindings available through D. Personally I find that it seems like there is alot of effort being put forth on GUI projects. It is my experience that most project's fail or die, not

  1   2   >