[Issue 6746] static this() inside struct skipped upon static method call
https://issues.dlang.org/show_bug.cgi?id=6746 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 7482] deprecation isn't checked inside forward referenced typeof()
https://issues.dlang.org/show_bug.cgi?id=7482 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 5819] DMD doesn't error/warn about illegal asm for 64bit mode
https://issues.dlang.org/show_bug.cgi?id=5819 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 4898] Can't see parent function's variables from nested functions when debugging
https://issues.dlang.org/show_bug.cgi?id=4898 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 5002] possible std.stream improvements
https://issues.dlang.org/show_bug.cgi?id=5002 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 5167] argument to function expecting a C callback parameter isn't checked for linkage type
https://issues.dlang.org/show_bug.cgi?id=5167 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 8847] voldemort + inout confuses is
https://issues.dlang.org/show_bug.cgi?id=8847 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 28] Documentation
https://issues.dlang.org/show_bug.cgi?id=28 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 4486] CodeView debug info should contain absolute path names
https://issues.dlang.org/show_bug.cgi?id=4486 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 13489] Boolean semantics of floating point types should use 0
https://issues.dlang.org/show_bug.cgi?id=13489 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 3953] Take user to correct compiler page from digitalmars.com
https://issues.dlang.org/show_bug.cgi?id=3953 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 10247] LastCatch grammar does not match implementation
https://issues.dlang.org/show_bug.cgi?id=10247 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 1554] Segfault in generated code.
https://issues.dlang.org/show_bug.cgi?id=1554 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3376] [tdpl] Multiple ranged case labels don't work
https://issues.dlang.org/show_bug.cgi?id=3376 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 6831] mangled name over 128 characters becomes unreadable
https://issues.dlang.org/show_bug.cgi?id=6831 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 6490] countUntil will take a non-range for its second argument
https://issues.dlang.org/show_bug.cgi?id=6490 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3713] Tail call optimization not enabled with the ?: operator
https://issues.dlang.org/show_bug.cgi?id=3713 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 8932] [Bugzilla] Version list in advanced search needs to be properly sorted
https://issues.dlang.org/show_bug.cgi?id=8932 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 6348] Returning a struct from a C library function doesn't work correctly in 64 bit binaries
https://issues.dlang.org/show_bug.cgi?id=6348 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 7791] Unnecessarily slow test in the DMD test suite
https://issues.dlang.org/show_bug.cgi?id=7791 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 3151] Broken link for akide
https://issues.dlang.org/show_bug.cgi?id=3151 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3286] Default parameter prevents to resolve inter-module circular dependency
https://issues.dlang.org/show_bug.cgi?id=3286 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.032 |D2 --
[Issue 5514] Erroneous documentation and lacking randomization for topN
https://issues.dlang.org/show_bug.cgi?id=5514 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3254] [module] Module member visibility depends on declaration order
https://issues.dlang.org/show_bug.cgi?id=3254 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 14050] `dmd -v` lists imports from failed __traits(compiles) blocks
https://issues.dlang.org/show_bug.cgi?id=14050 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
Re: Why is there no named parameter support?
On Tue, 09 Jun 2015 09:50:15 +, Marc Schütz wrote: On Tuesday, 9 June 2015 at 05:39:06 UTC, Timothee Cour wrote: I'd be very interested in reading more about those reasons beyond FUD. The arguments in favor have been repeated many times over, and the only argument against that I've heard ('overloading and named arguments do not play well together') doesn't seem valid, given the precedent in nim. The only problems I can think of is if they affect name mangling, because then you would need to specify the names on each call. As long as they are optional syntax sugar, like in ketmar's POC implementation, they will probably work well. they have to affect mangling for templates, though, if we want the ability to forward calls as is in templates. but i believe that this can be dealt with later -- i.e. in another PR. signature.asc Description: PGP signature
[Issue 10198] CTFE: Wrong code for multi-dimensional block assignment
https://issues.dlang.org/show_bug.cgi?id=10198 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
Re: [OT] Modules dropped out of C++17
On 2015-06-09 11:33, Walter Bright wrote: D's anti-hijacking lookup rules pretty much blunt this sort of problem. Even though the compiler makes sure there's no ambiguity it might not always be so easy to find the definition. -- /Jacob Carlborg
[Issue 7381] Make auto tail-const
https://issues.dlang.org/show_bug.cgi?id=7381 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 2626] template function not working against template struct instantiated with default arguments
https://issues.dlang.org/show_bug.cgi?id=2626 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 527] Compiler crash when use array, class, and struct in template argument
https://issues.dlang.org/show_bug.cgi?id=527 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 11869] Optlink doesn't detects strings duplicate
https://issues.dlang.org/show_bug.cgi?id=11869 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Component|Optlink |tools --
[Issue 5177] std.socketstream's close() should call super.close()
https://issues.dlang.org/show_bug.cgi?id=5177 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2551] std.format on invariant values : error and segmentation fault
https://issues.dlang.org/show_bug.cgi?id=2551 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.022 |D2 --
[Issue 768] A switch to print predefined version identifiers
https://issues.dlang.org/show_bug.cgi?id=768 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 2421] Struct assignment is broken (nulls target before evaluating source)
https://issues.dlang.org/show_bug.cgi?id=2421 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Component|glue layer |DMD Version|0.24|unspecified Product|DGCC aka GDC|D --
[Issue 6171] rdmd: cache dependency file to improve startup time [patch]
https://issues.dlang.org/show_bug.cgi?id=6171 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 2437] ICE(tocsym.c, !needThis()) - default struct argument
https://issues.dlang.org/show_bug.cgi?id=2437 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.019 |D2 --
[Issue 2646] Named mixins and member functions
https://issues.dlang.org/show_bug.cgi?id=2646 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 7454] Add file and line numbers to Linux stack traces using addr2line
https://issues.dlang.org/show_bug.cgi?id=7454 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 839] incorrect detection of WORD-sized operants: movzx, rcl, rcr, rol, ror
https://issues.dlang.org/show_bug.cgi?id=839 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 13579] Add limitations to Uniform Function Call Syntax
https://issues.dlang.org/show_bug.cgi?id=13579 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 12552] Review DMD's Static Analysis as Produced by Intel's C++ Compiler
https://issues.dlang.org/show_bug.cgi?id=12552 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 7395] Need error on declaring a variable after `if` and`synchronized` without {}
https://issues.dlang.org/show_bug.cgi?id=7395 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
Re: [OT] Modules dropped out of C++17
On Tuesday, 9 June 2015 at 08:58:19 UTC, Shachar Shemesh wrote: but: @property void func( ref A a, int b ) ... should work. Same goes for dropping the () to zero arguments function calls. Once that needs to be a conscious decision by the programmer, my problems with UFCS are greatly reduced (though, to be fair, not completely alleviated). Yes, that mirrors my thoughts exactly. To me a.propagate(b,c) reads completely different from propagate(a,b,c), just like a.start and a.start() reads different (asking vs doing). I want a language to enforce that. When reading code I don't want to wonder if libraryobject.print() is a function that is part of an external library or if it is application code. I want that to be clear when skimming over the source. No IDE can help with that without adding clutter. I therefore find extension-methods are more suitable for objects that are self-contained (like integer and string) and less suitable for objects that are facades for complicated machinery. The module/encapsulation subsystem for language BETA allows local extensions by injecting them into library-defined slots in the AST. That way the library author get some control over what you can extend. I also don't add methods much to objects in dynamic languages where this is integral to the programming model, only as a quick hack. Subclassing is usually the better option. Which is reflected in Python by the adding of a new class type with restrictions on expanding the type.
[Issue 2685] Implicit string literal concatenation
https://issues.dlang.org/show_bug.cgi?id=2685 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.025 |D2 --
[Issue 4064] [CTFE] array.reverse doesn't work
https://issues.dlang.org/show_bug.cgi?id=4064 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|future |D2 --
[Issue 3242] splitter does not handle input range made of a unique separator correctly
https://issues.dlang.org/show_bug.cgi?id=3242 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 6988] char a = 'ä'; should not compile
https://issues.dlang.org/show_bug.cgi?id=6988 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 7677] obj2asm thinks / starts a switch on non-Windows systems
https://issues.dlang.org/show_bug.cgi?id=7677 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added CC||and...@erdani.com Component|obj2asm |tools --
Re: [OT] Modules dropped out of C++17
On Tuesday, 9 June 2015 at 08:57:58 UTC, Chris wrote: On Monday, 8 June 2015 at 19:48:41 UTC, Paulo Pinto wrote: On Monday, 8 June 2015 at 19:24:47 UTC, Walter Bright wrote: On 6/8/2015 11:17 AM, Paulo Pinto wrote: Apparently modules have been pushed into a Technical Specification, and won't be ready on time for inclusion into ANSI C++ 17. https://botondballo.wordpress.com/2015/06/05/trip-report-c-standards-meeting-in-lenexa-may-2015/ So, here is another feature that D wins over C++. Looks like C++ is adopting ever more D features: proposed a syntax for declaring preconditions, postconditions, and invariants for a function in its interface (i.e. in its declaration), primarily for the purpose of static analysis and enabling compiler optimizations. Bjarne presented the latest version of his proposal for automatically generating comparison operators for class types. Unified call syntax. This proposal, by Bjarne, seeks to unify the member (x.f(y)) and non-member (f(x, y)) call syntaxes by allowing functions of either kind to be invoked by syntax of either kind. A restricted form of static_if; Extending static_assert to allow taking for the error message not just a string literal, but any constant expression that can be converted to a string literal. noexcept(auto), which basically means “deduce the noexcept-ness of this function from the noexcept-ness of the functions it calls. (This is essentially doing nothrow attribute inference.) Eric Niebler came to that meeting with a detailed and well fleshed-out design for ranges in the standard library. This is really funny. After years of ignoring or bashing and ridiculing D. Those who work with D know who useful these features are. They must have worked with it too ;) I see a problem that having those features in C++ will reduce the desire from companies to adopt D. Yes and no. In D these features have been carefully crafted to be part and parcel of the language (there are still some rough edges, but well). In C++ it's gonna be the usual glue it on top of what we have and make complicated rules in order not interfere with legacy code. In short, it's gonna be a nightmare to use and people will stick to what they know, I think. +1 the range library proposal is *ugly,* and the author did the best he could honestly. on the topic of D advancing ahead of C++, I think language built-in tuples and pattern matching would be a good start : )
[Issue 6114] immutable class variable not properly initialized when the constructor initializing it is non-shared
https://issues.dlang.org/show_bug.cgi?id=6114 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 1954] DMD does not generate module info in DWARF
https://issues.dlang.org/show_bug.cgi?id=1954 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 5221] entity.c: Merge Walter's list with Thomas'
https://issues.dlang.org/show_bug.cgi?id=5221 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 4067] [CTFE] Code inside try-catch blocks is silently ignored
https://issues.dlang.org/show_bug.cgi?id=4067 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|future |D2 --
[Issue 175] ice while building aaA.d with enable checking
https://issues.dlang.org/show_bug.cgi?id=175 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 9146] Errors in gagged forward reference declarations are detected too late.
https://issues.dlang.org/show_bug.cgi?id=9146 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 1666] 64-bit gdc programs cannot allocate large arrays
https://issues.dlang.org/show_bug.cgi?id=1666 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
Re: [OT] Modules dropped out of C++17
On 6/9/2015 12:42 AM, Shachar Shemesh wrote: Ambiguity over location of definition is something that promotes bugs. D's anti-hijacking lookup rules pretty much blunt this sort of problem.
[Issue 8271] [Ddoc] non-ascii character string macro names cannot be replaced
https://issues.dlang.org/show_bug.cgi?id=8271 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2798] std.variant constructor compatible with D variadics
https://issues.dlang.org/show_bug.cgi?id=2798 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.025 |D2 --
[Issue 721] setup-gcc.sh uses -E option to sed, which doesn't exist on most sed implementations
https://issues.dlang.org/show_bug.cgi?id=721 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3506] [module] Imports should be valid at any scope
https://issues.dlang.org/show_bug.cgi?id=3506 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|future |D2 --
[Issue 1943] Templates can't take function pointer parameters
https://issues.dlang.org/show_bug.cgi?id=1943 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.012 |D2 --
Re: safeArg: Little CLI util to pass null-delimited list of cmdline args to a program
This sounds like xargs: http://linux.die.net/man/1/xargs
Re: Why is there no named parameter support?
On Tuesday, 9 June 2015 at 05:39:06 UTC, Timothee Cour wrote: I'd be very interested in reading more about those reasons beyond FUD. The arguments in favor have been repeated many times over, and the only argument against that I've heard ('overloading and named arguments do not play well together') doesn't seem valid, given the precedent in nim. The only problems I can think of is if they affect name mangling, because then you would need to specify the names on each call. As long as they are optional syntax sugar, like in ketmar's POC implementation, they will probably work well.
Re: using D without GC
On Monday, 8 June 2015 at 20:11:31 UTC, Oleg B wrote: On Monday, 8 June 2015 at 13:37:40 UTC, Marc Schütz wrote: On Monday, 8 June 2015 at 12:24:56 UTC, Oleg B wrote: I guess you should follow andrei's post about new allocators! Can you get link to this post? These are some of his posts: http://forum.dlang.org/thread/mku0n4$s35$1...@digitalmars.com http://forum.dlang.org/thread/mkl1eh$1mdl$2...@digitalmars.com http://forum.dlang.org/thread/mjig8h$2rgi$1...@digitalmars.com http://forum.dlang.org/thread/mjdcep$11ri$1...@digitalmars.com http://forum.dlang.org/thread/mj3p2j$2qva$1...@digitalmars.com http://forum.dlang.org/thread/mir0lg$2l74$1...@digitalmars.com http://forum.dlang.org/thread/min9k8$9r9$1...@digitalmars.com Thank! Can you say how long wait (on average) to experimental modules will cease be an experimental and will be part of phobos? At next release or it unknown? Don't know in general. This one isn't even in Phobos yet, but OTOH it is a feature that's very much in demand, so the process might be sped up. Maybe it could even go directly to std.allocator instead of std.experimental.allocator...
[Issue 11415] Assign range to array
https://issues.dlang.org/show_bug.cgi?id=11415 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 7629] Add check for ref/out parameters not being null
https://issues.dlang.org/show_bug.cgi?id=7629 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 3809] Struct initializers apparently always CTFE'd
https://issues.dlang.org/show_bug.cgi?id=3809 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2657] Remove opPostInc, opPostDec
https://issues.dlang.org/show_bug.cgi?id=2657 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 2769] Link needed in 'Templates' for DeclDefs
https://issues.dlang.org/show_bug.cgi?id=2769 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 6470] postblits not called on arrays of structs
https://issues.dlang.org/show_bug.cgi?id=6470 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 5175] Add a way to get parameter names to std.traits
https://issues.dlang.org/show_bug.cgi?id=5175 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 2925] Destructor not called
https://issues.dlang.org/show_bug.cgi?id=2925 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 4057] [CTFE] inplace array change
https://issues.dlang.org/show_bug.cgi?id=4057 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|future |D2 --
[Issue 1660] DFLAGS environment variables is not working
https://issues.dlang.org/show_bug.cgi?id=1660 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 7902] [TDPL] sychronized is supposed to be for classes, not functions
https://issues.dlang.org/show_bug.cgi?id=7902 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3649] Socket not configured for work.
https://issues.dlang.org/show_bug.cgi?id=3649 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.040 |D2 --
[Issue 594] can't cast arrayliteral statically
https://issues.dlang.org/show_bug.cgi?id=594 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 2122] Scope object from a mixin destroyed immediately
https://issues.dlang.org/show_bug.cgi?id=2122 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.013 |D2 --
[Issue 2912] Incorrect array append for mixed character sizes
https://issues.dlang.org/show_bug.cgi?id=2912 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
Re: [OT] Modules dropped out of C++17
On Tuesday, 9 June 2015 at 08:40:21 UTC, Shachar Shemesh wrote: But that's just it. With UFCS, the function no longer needs to be in the same module as the class/struct to which it is referring. In fact, that is the whole point. What you complain about again? C never had modules or whatever symbol scoping anyway. In the relevant C++ proposal, at least you can be sure that there is at most one such function. Otherwise, the linker will complain (namespaces notwithstanding). In D, you can't even say that. There may be three (or three thousand) such functions, each in its own module, and until/unless you try to import two such modules, you won't even notice it. This is how all free functions worked since the beginning (even without UFCS). It's not a feature of UFCS.
Re: static foreach considered
On Monday, 8 June 2015 at 22:12:06 UTC, Idan Arye wrote: On Monday, 8 June 2015 at 21:32:52 UTC, Timon Gehr wrote: I think the body should have access to a scope that is hidden from the outside which contains the loop variable, but declarations should be inserted into the enclosing scope like for static if. This would require some syntax to mark the declarations we want to expose. Maybe `out`? This is far better than the mixin template approach, since it'll alert us early about conflicts: static foreach (ident; [a, b, a]) { int mixin(ident ~ 1); out int mixin(ident ~ 2); } `a1` is created twice, but that's OK since it isn't marked with `out`. `a2` is declared twice and raises a compilation error because it's marked with `out`. This will ensure these kind of errors are detected early and the compilation error points to the exact place of declaration. static foreach (ident; [a, b, a]) { private int mixin(ident ~ 1); int mixin(ident ~ 2); }
[Issue 1912] Error without line number (Tuple, invalid value argument)
https://issues.dlang.org/show_bug.cgi?id=1912 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|2.012 |D2 --
Re: Code behaves incorrectly if it is compiled in std.functional
On Mon, 08 Jun 2015 15:30:24 +, Marc Schütz wrote: On Monday, 8 June 2015 at 15:09:21 UTC, ketmar wrote: On Mon, 08 Jun 2015 15:47:33 +0200, Timon Gehr wrote: On 06/08/2015 03:11 PM, ketmar wrote: so specifying two storage classes are sometimes valid and sometimes invalid. a perfect consistency! The compiler sometimes compiles the program and sometimes terminates with an error message instead. That's life. yeah. you can't logically deduce it, you have to remember it! that's the way to success. That's only if you're talking about the details of the grammar. But for everyday use (even advanced use!) of the language, these are not important. You _don't_ have to remember it, because you simply don't need it. Noone forces you to write `auto const`, and it gives you no advantages over just `const`. But if you really feel an urge to use strange combinations of storage classes and type modifiers, just do it, and the compiler will tell you whether it's good or not. No need to remember anything. OTOH, if you encounter such a combination in someone else's code, it's still pretty obvious what it means. No problem there either. i'll keep citing `foreach (auto i)` thingy. it can't be deduced by using the knowledge of other language constructs, it can be only remembered. the less things one can't deduce language has, the better. signature.asc Description: PGP signature
[Issue 658] struct pointers in with()
https://issues.dlang.org/show_bug.cgi?id=658 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 5058] invariant() should not be called before opAssign()
https://issues.dlang.org/show_bug.cgi?id=5058 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 3150] cast from dynamic array to ulong is allowed
https://issues.dlang.org/show_bug.cgi?id=3150 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 4085] Steps toward a static foreach
https://issues.dlang.org/show_bug.cgi?id=4085 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|future |D2 --
[Issue 4767] dmd generates useless template bloat
https://issues.dlang.org/show_bug.cgi?id=4767 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 9311] shared library file extension incorrectly modified
https://issues.dlang.org/show_bug.cgi?id=9311 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2182] Exceptions don't work on FreeBSD
https://issues.dlang.org/show_bug.cgi?id=2182 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 7940] CTFE wrong-code for opAssign and std.array.Appender
https://issues.dlang.org/show_bug.cgi?id=7940 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2678] for loops are already assumed to terminate
https://issues.dlang.org/show_bug.cgi?id=2678 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
[Issue 7893] Spec completely wrong for D variadic arguments on 64 bits
https://issues.dlang.org/show_bug.cgi?id=7893 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2304] Add else clause to for loops - executed unless break exits
https://issues.dlang.org/show_bug.cgi?id=2304 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --
Re: [OT] Modules dropped out of C++17
On Tuesday, 9 June 2015 at 09:16:40 UTC, weaselcat wrote: On Tuesday, 9 June 2015 at 08:57:58 UTC, Chris wrote: On Monday, 8 June 2015 at 19:48:41 UTC, Paulo Pinto wrote: On Monday, 8 June 2015 at 19:24:47 UTC, Walter Bright wrote: On 6/8/2015 11:17 AM, Paulo Pinto wrote: Apparently modules have been pushed into a Technical Specification, and won't be ready on time for inclusion into ANSI C++ 17. https://botondballo.wordpress.com/2015/06/05/trip-report-c-standards-meeting-in-lenexa-may-2015/ So, here is another feature that D wins over C++. Looks like C++ is adopting ever more D features: proposed a syntax for declaring preconditions, postconditions, and invariants for a function in its interface (i.e. in its declaration), primarily for the purpose of static analysis and enabling compiler optimizations. Bjarne presented the latest version of his proposal for automatically generating comparison operators for class types. Unified call syntax. This proposal, by Bjarne, seeks to unify the member (x.f(y)) and non-member (f(x, y)) call syntaxes by allowing functions of either kind to be invoked by syntax of either kind. A restricted form of static_if; Extending static_assert to allow taking for the error message not just a string literal, but any constant expression that can be converted to a string literal. noexcept(auto), which basically means “deduce the noexcept-ness of this function from the noexcept-ness of the functions it calls. (This is essentially doing nothrow attribute inference.) Eric Niebler came to that meeting with a detailed and well fleshed-out design for ranges in the standard library. This is really funny. After years of ignoring or bashing and ridiculing D. Those who work with D know who useful these features are. They must have worked with it too ;) I see a problem that having those features in C++ will reduce the desire from companies to adopt D. Yes and no. In D these features have been carefully crafted to be part and parcel of the language (there are still some rough edges, but well). In C++ it's gonna be the usual glue it on top of what we have and make complicated rules in order not interfere with legacy code. In short, it's gonna be a nightmare to use and people will stick to what they know, I think. +1 the range library proposal is *ugly,* and the author did the best he could honestly. also, I wonder what the assembly output using the ranges proposal looks like. I often see my range code boiled down to a few vector ops by GDC and LDC, but AFAIK a lot of effort has gone into making ranges as efficient as possible.
[Issue 10715] negated bit test (bt) not recognized by optimizer
https://issues.dlang.org/show_bug.cgi?id=10715 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 11111] std.algorithm.canFind should support Needles...
https://issues.dlang.org/show_bug.cgi?id=1 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|unspecified |D2 --