Re: [GSoC] Precise GC

2016-10-13 Thread FrankLike via Digitalmars-d-announce

On Friday, 2 September 2016 at 03:25:33 UTC, Jeremy DeHaan wrote:

Hi everyone,

I know I'm super late to the party for this, and sorry for 
that. While my work on the precise GC didn't go as planned, it 
is closer than it was to be getting merged.


[...]


On Friday, 2 September 2016 at 03:25:33 UTC, Jeremy DeHaan wrote:
Hi,how about the precise GC, now?



[Issue 1161] [module] Access to private static members is allowed from other module.

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1161

Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |WONTFIX

--- Comment #10 from Walter Bright  ---
As this is fixed in D2, and broke existing code while doing it. Any use of D1
is for legacy compatibility and not breaking things, so there seems no reason
to fix this for D1.

--


[Issue 3108] [meta] Protection

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3108
Issue 3108 depends on issue 1161, which changed state.

Issue 1161 Summary: [module] Access to private static members is allowed from 
other module.
https://issues.dlang.org/show_bug.cgi?id=1161

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--


[Issue 4646] src/phobos/linux.mak STD_MODULES definition

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4646

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4572] std.file.read return type

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4572

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |WONTFIX

--- Comment #13 from Andrei Alexandrescu  ---
Well, this won't get changed at this point.

--


[Issue 4582] distinct field names constraint for std.typecons.Tuple

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4582

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
   Assignee|and...@erdani.com   |nob...@puremagic.com

--


[Issue 1448] UTF-8 output to console is seriously broken

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1448

Martin Krejcirik  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=15761

--


Re: So what's the deal with DFLAGS?

2016-10-13 Thread Walter Bright via Digitalmars-d

On 10/13/2016 5:47 PM, Andrei Alexandrescu wrote:

Should we do something about https://issues.dlang.org/show_bug.cgi?id=1660?


Resolved.


[Issue 1509] Need a way to create namespaces inside modules

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1509

--- Comment #6 from Bill Baxter  ---
Seems like aliased template is a pretty good substitute now. Thanks.

--


[Issue 15761] Windows wide character console output broken with MS runtime

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15761

Martin Krejcirik  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=1448

--


[Issue 4666] Optional name for std.typecons.Tuples?

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4666

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |WONTFIX

--- Comment #4 from Andrei Alexandrescu  ---
This won't happen at this point.

--


[Issue 4354] Phobos should expose per-thread errno

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4354

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4308] Extract the grammar from the docs for easy processing

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4308

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4447] order of functions greatly affects execution time

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4447

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4717] std.bitmanip.BitArray changes

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4717

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4542] [tdpl] TDPL NVI example results in linker error

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4542

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


Re: So what's the deal with DFLAGS?

2016-10-13 Thread rikki cattermole via Digitalmars-d

On 14/10/2016 3:41 PM, Andrei Alexandrescu wrote:

On 10/13/16 10:29 PM, rikki cattermole wrote:

On 14/10/2016 3:20 PM, Lurker wrote:

On Friday, 14 October 2016 at 00:47:34 UTC, Andrei Alexandrescu wrote:

Should we do something about
https://issues.dlang.org/show_bug.cgi?id=1660? -- Andrei


Srsly, the bug is over 8 years old, any only one person complained. It's
not even a bug but a feature request.

Close it as won't fix and move on.


dub respects it so it would break that now.


How? Does it translate DFLAGS into command line parameters for the
compiler? -- Andrei


Indeed[0].

[0] 
https://github.com/dlang/dub/blob/7662bce843531c32d7dae853afc5214b993aa6f2/source/dub/package_.d#L390


Re: So what's the deal with DFLAGS?

2016-10-13 Thread Andrei Alexandrescu via Digitalmars-d

On 10/13/16 10:29 PM, rikki cattermole wrote:

On 14/10/2016 3:20 PM, Lurker wrote:

On Friday, 14 October 2016 at 00:47:34 UTC, Andrei Alexandrescu wrote:

Should we do something about
https://issues.dlang.org/show_bug.cgi?id=1660? -- Andrei


Srsly, the bug is over 8 years old, any only one person complained. It's
not even a bug but a feature request.

Close it as won't fix and move on.


dub respects it so it would break that now.


How? Does it translate DFLAGS into command line parameters for the 
compiler? -- Andrei


[Issue 4577] Third way to create a std.typecons.Tuple

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4577

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 4200] "to!real(to!string(real.min_normal))" raises std.conv.ConvError

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4200

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
   Assignee|and...@erdani.com   |nob...@puremagic.com

--


[Issue 4544] Better error-message when expecting string but got a character constant

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4544

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 3772] Extension methods

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3772

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #1 from Andrei Alexandrescu  ---
Please follow the DIP flow for such a proposal. Thanks!

--


[Issue 4112] Stride in foreach ranges

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4112

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
Please author a DIP to propose such a change. Thanks!

--


[Issue 4535] std.range could have a takeWhile!pred(range) function

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4535

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
   Assignee|and...@erdani.com   |nob...@puremagic.com

--


Re: New team member: Lucia

2016-10-13 Thread rikki cattermole via Digitalmars-d-announce

On 14/10/2016 7:15 AM, Andrei Alexandrescu wrote:

Hello everyone,


Please join me in welcoming Lucia Lucia Cojocaru to our team. Lucia is a
MSc student in computer security, having Razvan Deaconescu and Razvan
Rughiniș as advisers. She just completed an internship at Bloomberg.

Her BSc thesis work[1] is an educational tool for facilitating better
understanding of dynamic linking and loading. The code is open source[2].

Lucia is interested in D-related projects for her MSc research.

The plan with our new team members Lucia and Alexandru (and hopefully
1-2 more) is to first get them through a month-long bootcamp process
during which they get familiar with the language and toolchain. An
integral part of the bootcamp is to get a few bugs fixed such that the
newcomers make some positive impact from the get-go and get used to the
review process.


Thanks,

Andrei

[1]
https://drive.google.com/file/d/0B_idW6n517Zfb3lLaGJJckp4Y0U/view?usp=sharing

[2] https://github.com/somzzz/dyninspector


Hello and welcome!

As I mentioned with Alexandru, feel free to come join us on #d Freenode.
If you have any problems we can help you there :)


Re: So what's the deal with DFLAGS?

2016-10-13 Thread rikki cattermole via Digitalmars-d

On 14/10/2016 3:20 PM, Lurker wrote:

On Friday, 14 October 2016 at 00:47:34 UTC, Andrei Alexandrescu wrote:

Should we do something about
https://issues.dlang.org/show_bug.cgi?id=1660? -- Andrei


Srsly, the bug is over 8 years old, any only one person complained. It's
not even a bug but a feature request.

Close it as won't fix and move on.


dub respects it so it would break that now.


Re: So what's the deal with DFLAGS?

2016-10-13 Thread Lurker via Digitalmars-d
On Friday, 14 October 2016 at 00:47:34 UTC, Andrei Alexandrescu 
wrote:
Should we do something about 
https://issues.dlang.org/show_bug.cgi?id=1660? -- Andrei


Srsly, the bug is over 8 years old, any only one person 
complained. It's not even a bug but a feature request.


Close it as won't fix and move on.


[Issue 4128] Named-fields Tuple assign from unnamed-fields Tuple

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4128

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |FIXED

--- Comment #1 from Andrei Alexandrescu  ---
A PR recently added this facility.

--


[Issue 4393] Very good dotProduct

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4393

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 4527] writeln/typeid to use string type names

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4527

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


Re: Old bugs

2016-10-13 Thread Martin Krejcirik via Digitalmars-d
For example, https://issues.dlang.org/show_bug.cgi?id=1448 
should be addressable. Either we should provide a translation 
function for outputting things and recommend it, or document 
that codepages that D runs on Windows etc - there's got to be a


What is IMHO needed to fix this bug, is to add to stdio an 
automatic translation to console codepage (when reading/writing 
from/to console window). Actual translation functions are in 
Phobos already (std.windows.charset).




[Issue 2249] DMD can't handle include paths with spaces in them

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2249

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4334] Missing detailed documentation about dependencies file format

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4334

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4150] std.signals causes memory corruption and heisenbugs

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4150

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 3725] Add units type to standard library

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3725

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--- Comment #6 from Andrei Alexandrescu  ---
Large project, will assign to bootcamp in case someone is interested.

--


[Issue 3507] [module] Flag unused imports to avoid unnecessary dependencies

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3507

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #1 from Andrei Alexandrescu  ---
I'm assigning this to bootcamp although it's a large-ish project, probably
appropriate for a separate tool.

--


[Issue 3610] isNumeric("3.14"w) is false.

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3610

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


Re: Phobos func for string -> enum member?

2016-10-13 Thread Nick Sabalausky via Digitalmars-d-learn

On 10/13/2016 07:14 PM, H. S. Teoh via Digitalmars-d-learn wrote:

On Thu, Oct 13, 2016 at 07:11:15PM -0400, Nick Sabalausky via 
Digitalmars-d-learn wrote:

I'm sure it'd be easy enough to write, but does phobos have a simple
way to convert the name of an enum member from a runtime string to the
enum type?

Ie, something like:

enum Foobar { foo=1, bar }
Foobar a = doesThisExistInPhobos!Foobar("foo");

I'm not finding anything like it in the docs, but I'm wondering if I
just missed it somewhere.


import std.conv : to;
Foobar a = "foo".to!Foobar;

:-)


T



Ah. Right. ;)

Thanks all.



[Issue 3936] Suggestions for some better alternative names

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3936

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--


[Issue 4125] std.numeric.gcd can use a binary GCD

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4125

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
   Assignee|and...@erdani.com   |nob...@puremagic.com

--


[Issue 3523] [GC] Fiber is not garbage collected properly

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3523

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2764] Skip link if main not found

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2764

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
Seems to me this is insufficiently motivated and specified. Will close, please
reopen if deemed necessary.

--


[Issue 4026] Local Documentation access too slow

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4026

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WORKSFORME

--


[Issue 2898] Allow RandomCover to sample both w/ and w/o replacement.

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2898

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 3749] cannot evaluate yl2x (log) and exp functions at compile time

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3749

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 3129] Cannot take advantage of overriding Throwable.toString

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3129

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2742] std.stdio assumes console works in utf-8

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2742

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
   Assignee|and...@erdani.com   |nob...@puremagic.com

--


[Issue 2913] aliasing a ref type is not possible

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2913

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
This will be a DIP if at all.

--


[Issue 3462] Add a clean way to exit a process.

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3462

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2060] some ddoc design typos

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2060

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2299] the ABI documentation for registry convention does not include IA-64 platform

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2299

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 3529] Use of /etc discouraged in FreeBSD for third party applications.

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3529

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 1945] Inconsistent and confusing documentation

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1945

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |FIXED

--- Comment #1 from Andrei Alexandrescu  ---
AliasSeq fixed this, fortunately.

--


[Issue 2201] Doc/Behavior Discrepancy: EndOfLine in string turns to "\n" or system-specific?

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2201

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2617] asm silently accepts ambiguous-sized operations

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2617

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2867] stringof is broken

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2867

Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com

--- Comment #2 from Andrei Alexandrescu  ---
FWIW this prints "& foo":

class D
{
  int foo(int i){ return 0; }
}

pragma(msg, ().stringof);

void main(){}

--


[Issue 1998] std.bitarray should have setAll / opSliceAssign(bool) etc

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1998

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 2496] zlib stream class

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2496

--- Comment #1 from Andrei Alexandrescu  ---
I'm putting this for bootcamp, although it's a large-ish project.

--


[Issue 2496] zlib stream class

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2496

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 1761] TypeInfo.toString for function types always indicates no-parameter function

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1761

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 1827] Uniform syntax for is(), static if, alias, template definition & static assert

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1827

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #8 from Andrei Alexandrescu  ---
We're well past the stage where this could be framed as an enhancement. If
there's interest in overhauling syntax, only a DIP would be appropriate.

--


[Issue 1855] .dup property for value types

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1855

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |INVALID

--- Comment #1 from Andrei Alexandrescu  ---
A simple "static if" takes care of this.

--


[Issue 1509] Need a way to create namespaces inside modules

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1509

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
I'll close this now, please reopen if necessary.

--


[Issue 1734] mixins for statements

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1734

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
This is too large an enhancement for bugzilla. If such is deemed necessary, the
DIP approach must be taken.

--


[Issue 1630] Few suggestions for std.conv (D language 2.0)

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1630

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Andrei Alexandrescu  ---
The current range facilities seem to obsolete this. Feel free to reopen if
there are unfulfilled requirements.

--


[Issue 1053] Make 'static else if' or 'static if (...) {...} else if' work

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1053

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--


[Issue 16609] std.experimental.ndslice.slice issues warnings when building Phobos

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16609

Walter Bright  changed:

   What|Removed |Added

   Keywords||bootcamp

--


So what's the deal with DFLAGS?

2016-10-13 Thread Andrei Alexandrescu via Digitalmars-d
Should we do something about 
https://issues.dlang.org/show_bug.cgi?id=1660? -- Andrei


[Issue 1585] Imports should be searched relative to importing file

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1585

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #4 from Andrei Alexandrescu  ---
Seems the current way of doing things has withstood the test of time.

--


Re: New team member: Lucia

2016-10-13 Thread deadalnix via Digitalmars-d-announce
On Thursday, 13 October 2016 at 18:15:30 UTC, Andrei Alexandrescu 
wrote:

Hello everyone,


Please join me in welcoming Lucia Lucia Cojocaru to our team. 
Lucia is a MSc student in computer security, having Razvan 
Deaconescu and Razvan Rughiniș as advisers. She just completed 
an internship at Bloomberg.


Her BSc thesis work[1] is an educational tool for facilitating 
better understanding of dynamic linking and loading. The code 
is open source[2].


Lucia is interested in D-related projects for her MSc research.

The plan with our new team members Lucia and Alexandru (and 
hopefully 1-2 more) is to first get them through a month-long 
bootcamp process during which they get familiar with the 
language and toolchain. An integral part of the bootcamp is to 
get a few bugs fixed such that the newcomers make some positive 
impact from the get-go and get used to the review process.



Thanks,

Andrei

[1] 
https://drive.google.com/file/d/0B_idW6n517Zfb3lLaGJJckp4Y0U/view?usp=sharing

[2] https://github.com/somzzz/dyninspector


Hi !


Old bugs

2016-10-13 Thread Andrei Alexandrescu via Digitalmars-d
I'm going through bugzilla in increasing ID order looking for tasks to 
bootcamp, and am finding a bunch of old bugs that haven't been looked at 
in a long time.


It would be really great to get rid of some of these old issues and 
generally put some order in our bugzilla. If some are just enhancements 
that given the current direction of D will never happen (as is the case 
with the proposed syntax "static else if" as an alternative/replacement 
for "else static if") please let me know and I'll look into closing them.


We've been liberal about putting things in bugzilla. Well, at some time 
we also need to look at them - it's not a write-only database like in 
that joke :o).


For example, https://issues.dlang.org/show_bug.cgi?id=1448 should be 
addressable. Either we should provide a translation function for 
outputting things and recommend it, or document that codepages that D 
runs on Windows etc - there's got to be a solution. It's not an 
NP-complete problem. Can somebody fluent in Windows codepages take a look?



Thanks,

Andrei


[Issue 1085] Need to add ability to detach threads.

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1085

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


Re: core.intrinsics

2016-10-13 Thread Andrei Alexandrescu via Digitalmars-d

On 10/13/2016 06:55 PM, Stefan Koch wrote:

If anyone has good suggestions as to how such facilites may be named I
am all ears.


The best way is to find 2-3 planned artifacts that have a common theme. 
Then a name comes up naturally. -- Andrei


[Issue 1077] writef and friends won't read/write from/to redirected std handles

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1077

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 1001] print stack trace (in debug mode) when program die

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1001

Andrei Alexandrescu  changed:

   What|Removed |Added

   Assignee|s...@invisibleduck.org  |lucia.mcojoc...@gmail.com

--


[Issue 16484] regression(2.064) Overloaded empty funcs trigger AssertError: "Called `get' on null Nullable"

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16484

--- Comment #4 from Walter Bright  ---
https://github.com/dlang/dmd/pull/6194

--


[Issue 16484] regression(2.064) Overloaded empty funcs trigger AssertError: "Called `get' on null Nullable"

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16484

Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |WONTFIX

--- Comment #3 from Walter Bright  ---
(In reply to ag0aep6g from comment #2)
> void foo(T)(Nullable!T value) {}

Considered:
"match with conversion for initial template arguments"
"exact match for inferred template arguments"

> void foo()(int i) { assert(false); /* hit */ }

Considered:
   "exact match for initial template arguments"
   "exact match for inferred template arguments"

And so the second match is better. The relevant line in the source code is
"matchTiargs = MATCHconvert;" at:

https://github.com/dlang/dmd/blob/master/src/dtemplate.d#L1916

This is because the parameter 'T' is deduced from argument 'Nullable!int',
rather than being supplied directly.

Whether this is correct or not is debatable, I think the template rules are
excessively complex, but they are the result of constant complaints and
revision. I am extremely reluctant to change them further, because that will
inevitably result in hard-to-explain breakage, like this one, which was
apparently introduced in 2.064. If someone wants to find the specific PR that
did it, I'd appreciate it.

--


Buy Registered IELTS,TOEFL,ESOL CERTIFICATES Passport,Drivers license,ID Cards,Visas and others

2016-10-13 Thread yolland.papers via Digitalmars-d-announce
Buy the certificate passport registered IELTS, TOEFL, ESOL, 
drivers

licenses, ID cards, visas and other Skype id ... koffihassan

We offer our exclusive customers the ability to get the IELTS, 
TOEFL, ESOL

AUTODESK certificates without examinations. The regions we cover
are Asia, United Arab Emirates, Qatar, Oman, Saudi Arabia, 
Jordan, etc.


(((koffi89sta...@gmail.com))) we offer our exclusive clients the 
opportunity to obtain the TOEFL, GMAT, GRE, TOEIC, IELTS, ESOL
AUTODESK certificates without examinations. The regions we 
coverare Asia, United Arab Emirates, Qatar,

Oman, Saudi Arabia, Jordan, Kuwait, Australia, Canada and Europe.
We work with "inside men" formal review working in various 
database units that are in charge and can ensure that you are 
entering your information in the same database (British council 
the IELTS) without any problems. The certificates we issue are 
legit and issued by the institution or the respective State 
concerned. We only faster and smarter !!!
Our IELTS certificates are original and certified by the British 
Council. We do not make false

certificates!

Skype id ... koffihassan


Buy Registered IELTS,TOEFL,ESOL CERTIFICATES Passport,Drivers license,ID Cards,Visas and others

2016-10-13 Thread accurate.lady via Digitalmars-d


Buy the certificate passport registered IELTS, TOEFL, ESOL, 
drivers

licenses, ID cards, visas and other Skype id ... koffihassan

We offer our exclusive customers the ability to get the IELTS, 
TOEFL, ESOL

AUTODESK certificates without examinations. The regions we cover
are Asia, United Arab Emirates, Qatar, Oman, Saudi Arabia, 
Jordan, etc.


(((Koffi89stamps (at) gmail dot com))) we offer our exclusive 
clients the opportunity to obtain the TOEFL, GMAT, GRE, TOEIC, 
IELTS, ESOL
AUTODESK certificates without examinations. The regions we 
coverare Asia, United Arab Emirates, Qatar,

Oman, Saudi Arabia, Jordan, Kuwait, Australia, Canada and Europe.
We work with "inside men" formal review working in various 
database units that are in charge and can ensure that you are 
entering your information in the same database (British council 
the IELTS) without any problems. The certificates we issue are 
legit and issued by the institution or the respective State 
concerned. We only faster and smarter !!!
Our IELTS certificates are original and certified by the British 
Council. We do not make false

certificates!

Skype id ... koffihassan


Re: Phobos func for string -> enum member?

2016-10-13 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Oct 13, 2016 at 07:11:15PM -0400, Nick Sabalausky via 
Digitalmars-d-learn wrote:
> I'm sure it'd be easy enough to write, but does phobos have a simple
> way to convert the name of an enum member from a runtime string to the
> enum type?
> 
> Ie, something like:
> 
> enum Foobar { foo=1, bar }
> Foobar a = doesThisExistInPhobos!Foobar("foo");
> 
> I'm not finding anything like it in the docs, but I'm wondering if I
> just missed it somewhere.

import std.conv : to;
Foobar a = "foo".to!Foobar;

:-)


T

-- 
It is impossible to make anything foolproof because fools are so ingenious. -- 
Sammy


Re: Phobos func for string -> enum member?

2016-10-13 Thread Ali Çehreli via Digitalmars-d-learn

On 10/13/2016 04:11 PM, Nick Sabalausky wrote:

I'm sure it'd be easy enough to write, but does phobos have a simple way
to convert the name of an enum member from a runtime string to the enum
type?

Ie, something like:

enum Foobar { foo=1, bar }
Foobar a = doesThisExistInPhobos!Foobar("foo");

I'm not finding anything like it in the docs, but I'm wondering if I
just missed it somewhere.


import std.conv;

enum Foobar { foo=1, bar }
void main() {
assert("foo".to!Foobar == Foobar.foo);
}

Ali



Re: core.intrinsics

2016-10-13 Thread David Gileadi via Digitalmars-d

On 10/13/16 12:52 PM, Stefan Koch wrote:

On Thursday, 13 October 2016 at 19:49:42 UTC, Johan Engelen wrote:

On Thursday, 13 October 2016 at 19:35:08 UTC, Stefan Koch wrote:


Please share your thoughts and tell me what other intrinsic functions
could/should be added.


I think the name should be different from "intrinsics", so that it can
also contain functions like "likely-functionptr" / "likely-class"
optimization functions (e.g. the is_likely template from the other
thread).

-Johan


What name would you suggest then ?


As an ignorant bystander I like core.intrinsics, but if not then perhaps 
core.compilerhints or something to that effect?


Phobos func for string -> enum member?

2016-10-13 Thread Nick Sabalausky via Digitalmars-d-learn
I'm sure it'd be easy enough to write, but does phobos have a simple way 
to convert the name of an enum member from a runtime string to the enum 
type?


Ie, something like:

enum Foobar { foo=1, bar }
Foobar a = doesThisExistInPhobos!Foobar("foo");

I'm not finding anything like it in the docs, but I'm wondering if I 
just missed it somewhere.


[Issue 16434] dmd assertion failure in declaration.d

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16434

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #4 from Walter Bright  ---
I get the error message, but no assert.

--


[Issue 16418] dip25 wrong escaping reference to this

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16418

Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |INVALID

--- Comment #4 from Walter Bright  ---
It is an escaping reference to this. Compiler is working as intended.

--


Re: New team member: Lucia

2016-10-13 Thread Emre Temelkuran via Digitalmars-d-announce
Lucia borrowed money from me couple years ago, still waiting for 
payback :S.


Re: core.intrinsics

2016-10-13 Thread Stefan Koch via Digitalmars-d
On Thursday, 13 October 2016 at 22:44:13 UTC, Dominikus Dittes 
Scherkl wrote:

On Thursday, 13 October 2016 at 19:52:57 UTC, Stefan Koch wrote:
On Thursday, 13 October 2016 at 19:49:42 UTC, Johan Engelen 
wrote:
On Thursday, 13 October 2016 at 19:35:08 UTC, Stefan Koch 
wrote:


Please share your thoughts and tell me what other intrinsic 
functions could/should be added.


I think the name should be different from "intrinsics", so 
that it can also contain functions like "likely-functionptr" 
/ "likely-class" optimization functions (e.g. the is_likely 
template from the other thread).


-Johan


What name would you suggest then ?

how about "fuzzylogic"?


It has nothing todo with fuzzy logic.
AFAIK fuzzy-logic deals with optimizing boolean logic in order to 
by represented by smaller transistor networks.


core.optimize suggests that there is some functionality that 
optimises things for you which is not the case.


The only thing this should provide are compiler-specific 
low-level tools to affect code-gen.

in as protable a manner as possible.

I am especially intrested in being able to provide hints for 
code-layout.
That does not only affect basic block-placement but also the 
which functions will be placed next to each other if possble.


If anyone has good suggestions as to how such facilites may be 
named I am all ears.


Re: core.intrinsics

2016-10-13 Thread Dominikus Dittes Scherkl via Digitalmars-d

On Thursday, 13 October 2016 at 19:52:57 UTC, Stefan Koch wrote:
On Thursday, 13 October 2016 at 19:49:42 UTC, Johan Engelen 
wrote:
On Thursday, 13 October 2016 at 19:35:08 UTC, Stefan Koch 
wrote:


Please share your thoughts and tell me what other intrinsic 
functions could/should be added.


I think the name should be different from "intrinsics", so 
that it can also contain functions like "likely-functionptr" / 
"likely-class" optimization functions (e.g. the is_likely 
template from the other thread).


-Johan


What name would you suggest then ?

how about "fuzzylogic"?




Re: core.intrinsics

2016-10-13 Thread Stefan Koch via Digitalmars-d

On Thursday, 13 October 2016 at 21:52:22 UTC, Johan Engelen wrote:

On Thursday, 13 October 2016 at 19:52:57 UTC, Stefan Koch wrote:


also do you happen to know where llvm_expect is implemented in 
ldc ? I cannot seem to find it.


It's at the bottom of druntime/src/ldc/intrinsics.di  (note the 
extension).


I saw that one, but I cannot find the place where ldc checks for 
this template being instantiated.

And then applies the intrinsic.
Which is what I need to see in order to define a sensible way in 
dmd to use those intrinsics.


Re: Why are homepage examples too complicated?

2016-10-13 Thread Guillaume Piolat via Digitalmars-d

On Thursday, 13 October 2016 at 19:06:26 UTC, Karabuta wrote:
I assume the purpose for those demonstrations are to win the 
interest of the user as to how easy and clean D code can be. 
Then why;


// Round floating point numbers
import std.algorithm, std.conv, std.functional,
std.math, std.regex, std.stdio;

alias round = pipe!(to!real, std.math.round, to!string);
static reFloatingPoint = ctRegex!`[0-9]+\.[0-9]+`;

void main()
{
// Replace anything that looks like a real
// number with the rounded equivalent.
stdin
.byLine
.map!(l => l.replaceAll!(c => c.hit.round)
(reFloatingPoint))
.each!writeln;
}

How is a new visitor supposed to know "!" is for templates and 
not some complicated syntax?


I agree, something friendly and familiar would be called for. 
Instead we have weird float-rounding programs.


The goal of such program should be to push the reader to continue 
reading by apealing to familiarty. I think this strongly conveys 
the message that D is complicated and "not for me".


See also:
https://golang.org/
https://www.rust-lang.org/fr-FR/
https://crystal-lang.org/
https://www.ruby-lang.org/fr/
https://www.python.org/

Do you notice something? The language branded as "simple" have 
the simplest landing page programs.


Re: Building DMD with DMD or LDC

2016-10-13 Thread Nordlöw via Digitalmars-d-learn

On Thursday, 13 October 2016 at 19:28:11 UTC, Daniel Kozak wrote:
You can easy try it. Just build dmd with dmd, than with ldc. 
And then try to compile DMD frontend with both dmd versions :)



Dne 13.10.2016 v 21:07 Nordlöw via Digitalmars-d-learn 
napsal(a):
Is there a large speed difference in compilation time 
depending on whether the DMD used is built using DMD or LDC?


When I replace dmd with ldmd2 in the last call of the build it 
crashes as


CC=c++ ldmd2 -ofdmd -m64 -vtls -J. -J../res -L-lstdc++ 
-version=MARS -wi -O -release -inline access.d aggregate.d 
aliasthis.d apply.d argtypes.d arrayop.d arraytypes.d attrib.d 
builtin.d canthrow.d clone.d complex.d cond.d constfold.d 
cppmangle.d ctfeexpr.d dcast.d dclass.d declaration.d 
delegatize.d denum.d dimport.d dinifile.d dinterpret.d dmacro.d 
dmangle.d dmodule.d doc.d dscope.d dstruct.d dsymbol.d 
dtemplate.d dversion.d entity.d errors.d escape.d expression.d 
func.d globals.d hdrgen.d id.d identifier.d impcnvtab.d imphint.d 
init.d inline.d intrange.d json.d lexer.d lib.d link.d mars.d 
mtype.d nogc.d nspace.d opover.d optimize.d parse.d sapply.d 
sideeffect.d statement.d staticassert.d target.d tokens.d 
traits.d utf.d visitor.d typinf.d utils.d statementsem.d safe.d 
objc_stubs.d libelf.d scanelf.d irstate.d toelfdebug.d toctype.d 
glue.d gluelayer.d todt.d tocsym.d toir.d dmsc.d tocvdebug.d 
backend/bcomplex.d backend/cc.d backend/cdef.d backend/cgcv.d 
backend/code.d backend/cv4.d backend/dt.d backend/el.d 
backend/global.d backend/obj.d backend/oper.d backend/outbuf.d 
backend/rtlsym.d backend/ty.d backend/type.d tk/dlist.d 
root/aav.d root/array.d root/ctfloat.d root/file.d 
root/filename.d root/man.d root/outbuffer.d root/port.d 
root/response.d root/rmem.d root/rootobject.d root/speller.d 
root/stringtable.d newdelete.o glue.a backend.a

tk/dlist.d(51): list_inited is thread local
backend/cgcv.d(26): ftdbname is thread local
0  ldc20x013af6a5
1  ldc20x013ae05e
2  ldc20x013ae19a
3  libpthread.so.0 0x7f3ce59443d0
4  ldc20x012fcd94
5  ldc20x01350a42
6  ldc20x013532fd
7  ldc20x01315d2a
8  ldc20x01315e0e
9  ldc20x01315f24
10 ldc20x006cb40b
11 ldc20x006e1c77
12 ldc20x006daf86
13 ldc20x00686488
14 ldc20x0058a1c9
15 ldc20x0068847b
16 ldc20x013e2fff 
_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv + 
15

17 ldc20x013e2fc4
18 ldc20x013e2eed
19 libc.so.6   0x7f3ce506a830 __libc_start_main + 240
20 ldc20x0049c751
Error: Error executing 
/home/per/.local/ldc2-1.1.0-beta3-linux-x86_64/bin/ldc2: 
Segmentation fault (core dumped)


I'm using LDC 1.1.0-beta3 on Ubuntu 16.04.


[Issue 16611] std.traits.fullyQualifiedName fails with error 'Unrecognized type const(void)'

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16611

alexandru.ermic...@gmail.com changed:

   What|Removed |Added

   Priority|P1  |P2

--


Re: core.intrinsics

2016-10-13 Thread Johan Engelen via Digitalmars-d

On Thursday, 13 October 2016 at 19:52:57 UTC, Stefan Koch wrote:


What name would you suggest then ?


Yeah, that's the problem isn't it... :(

Something with "optimize"?

(I'm thinking the module would combine functions with no 
observable effects, and for which the default implementation does 
nothing.)


[Issue 16611] New: std.traits.fullyQualifiedName fails with error 'Unrecognized type const(void)'

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16611

  Issue ID: 16611
   Summary: std.traits.fullyQualifiedName fails with error
'Unrecognized type const(void)'
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: minor
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: alexandru.ermic...@gmail.com

fullyQualifiedName fails to execute on following code:


import std.traits;

enum auto test = fullyQualifiedName!(const(void));



The error produced by it, is:
Error: static assert  "Unrecognized type const(void), can't convert to fully
qualified string"

--


Re: core.intrinsics

2016-10-13 Thread Johan Engelen via Digitalmars-d

On Thursday, 13 October 2016 at 19:52:57 UTC, Stefan Koch wrote:


also do you happen to know where llvm_expect is implemented in 
ldc ? I cannot seem to find it.


It's at the bottom of druntime/src/ldc/intrinsics.di  (note the 
extension).





Re: Reducing the cost of autodecoding

2016-10-13 Thread safety0ff via Digitalmars-d
On Thursday, 13 October 2016 at 01:36:44 UTC, Andrei Alexandrescu 
wrote:


Oh ok, so it's that checksum in particular that got optimized. 
Bad benchmark! Bad! -- Andrei


Also, I suspect a benchmark with a larger loop body might not 
benefit as significantly from branch hints as this one.


Re: Cannot link with libphobos2.a with GCC 6.2 on Ubuntu 16.10

2016-10-13 Thread Nordlöw via Digitalmars-d-learn

On Thursday, 13 October 2016 at 19:11:36 UTC, Adam D. Ruppe wrote:
Try `-defaultlib=libphobos2.so` with your dmd command line. The 
.so version is pic compiled.


Building DMD fails to how do I modify the call

make -f posix.mak

under the dmd checkout?


Re: Please help me add the "bootcamp" keyword

2016-10-13 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 13, 2016 20:43:42 Andrei Alexandrescu via Digitalmars-d 
wrote:
> jmh530  wrote:
> > Why not introduce a Difficulty indicator to accompany Importance?
> > Bootcamp could be like the equivalent of a 2 out of 5.
>
> Simple has its advantages.

Also, rating bugs for difficulty can be pretty hard. It's not always obvious
how difficult it's going to be and even determining whether it's on the easy
end of the scale is hard without gradating it further.

And I don't think that we really want to be taking the time to rate every
bug anyway. There are plenty of other things to do that would be more
useful. It's just that rating at least some bugs as good for beginners would
be useful for helping folks get started. So, spending some time on this is
valuable, but going to town on it would be counter-productive.

- Jonathan M Davis



[Issue 16608] 'static foreach', nested function template, 'static if', anySatisfy: Only the first iteration seems to work

2016-10-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16608

--- Comment #4 from Ketmar Dark  ---
yeah, another known bug: #11720

--


Re: ReturnType and Parameters of Templated function/method

2016-10-13 Thread Patric Dexheimer via Digitalmars-d-learn

On Thursday, 13 October 2016 at 21:07:17 UTC, ketmar wrote:
On Thursday, 13 October 2016 at 20:52:09 UTC, Patric Dexheimer 
wrote:
So for now my idea is to brute force the numbers of arguments 
with 'compiles' trait or trying to get the sourcecode somehow.


depending on source code form (even if you can get it) is 
highly error-prone. consider it UB.


also, i think that you'd better not guess, but ask the user to 
explicitly instantiate the methods with `alias` -- this way you 
have to write less hacky code, and the user will have more 
control over what is bound. you may provide helper mixin 
templates to instantiate n-ary functions with given set of 
types too. this is slightly more work on the user side, but it 
doesn't depend on hacks and undocumented things.


Yes, but i like the idea of "automagically" bind everything with 
little user effort.
Sometimes you have a lot of code to expose to lua (and templated 
code as well with lots of templated argument combinations), so I 
think is nice to have some automated work on this.


But you are right about the "highly error-prone" part.
I´ll try to avoid that path :)


  1   2   >