On Wednesday, 26 October 2016 at 21:57:59 UTC, Basile B. wrote:
It looks fairly simple to do in dmd, like this (with breakage
in case the user-defined main() did something useful):
1. deactivate the main functionDeclaration un funcs.d
final bool isMain()
{
return ident == Id.main &&
On Thursday, 17 November 2016 at 10:53:22 UTC, Chris wrote:
Sorry, no time for a PR right now. Just found this funny
mistake:
"In D, string, wstring, and dstring are UTF-8, UTF-16, and
UTF-32 encoded strings respectfully. Their character types are
char, wchar, and dchar."
On Thursday, 17 November 2016 at 22:46:33 UTC, Timon Gehr wrote:
On 17.11.2016 22:41, John Colvin wrote:
On Thursday, 17 November 2016 at 21:39:15 UTC, Timon Gehr
wrote:
On 17.11.2016 03:52, Stefan Koch wrote:
On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr
wrote:
I want to get
On 11/17/2016 7:30 AM, Dicebot wrote:
On Thursday, 17 November 2016 at 15:26:21 UTC, John Colvin wrote:
Regardless of the outcome, I just want to commend whoever wrote the rejection
text* on doing such a clear and comprehensive job. I'm sure it must be
disappointing for a DIP author to have it
On Thursday, 17 November 2016 at 09:40:45 UTC, Carlin St Pierre
wrote:
Is it possible to get the list of usages of a template during
compile time?
For example:
class Foo
{
void bar(T)(T t)
{
}
}
void main()
{
Foo foo = new Foo;
foo.bar(1); // int
On 17.11.2016 22:41, John Colvin wrote:
On Thursday, 17 November 2016 at 21:39:15 UTC, Timon Gehr wrote:
On 17.11.2016 03:52, Stefan Koch wrote:
On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr wrote:
I want to get there eventually. :)
Unfortunately I haven't had a lot of time to
On Thursday, 17 November 2016 at 21:39:15 UTC, Timon Gehr wrote:
On 17.11.2016 03:52, Stefan Koch wrote:
On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr
wrote:
I want to get there eventually. :)
Unfortunately I haven't had a lot of time to spend on this
lately.
Also, DMD 2.060 has
On 17.11.2016 03:52, Stefan Koch wrote:
On Wednesday, 16 November 2016 at 09:11:50 UTC, Timon Gehr wrote:
I want to get there eventually. :)
Unfortunately I haven't had a lot of time to spend on this lately.
Also, DMD 2.060 has quite many annoying bugs that slow down development.
Sounds to
https://issues.dlang.org/show_bug.cgi?id=16699
--- Comment #5 from hst...@quickfur.ath.cx ---
Unfortunately, the -O trick doesn't work with issue 16698. So it's not a
reliable workaround for this bug.
--
On 11/17/2016 10:43 AM, Dicebot wrote:
Yes. Assuming you do want multiple review iterations support, I can
imagine something like this:
- new "review candidate #" field is added to the header
- it is set to 0 on initial merge and to 1 after incorporating initial
NG feedback
- it also references
On Thursday, 17 November 2016 at 18:40:12 UTC, Suliman wrote:
For example I need to write all logs to file. I see this
function, that seem set some global file name.
"setLogFileSets a log file for disk file logging."
But would it name accessible from anywhere or it would be
visible
https://issues.dlang.org/show_bug.cgi?id=16699
--- Comment #4 from hst...@quickfur.ath.cx ---
Yet another data point: compiling with -O makes the problem go away(!).
Somehow, I guess the optimizer must be working at a higher level of
abstraction, and was able to deduce the correct semantics and
https://issues.dlang.org/show_bug.cgi?id=16699
--- Comment #3 from hst...@quickfur.ath.cx ---
P.S., in the bad code case, %rax contains the address of a local variable used
to store the static array, but %rdx appears to contain the correct return
value. Did the codegen somehow fail to leave the
https://issues.dlang.org/show_bug.cgi?id=16699
--- Comment #2 from hst...@quickfur.ath.cx ---
Looking at the assembly, it seems like a codegen bug. The static array is
actually correctly initialized with the return value, but when scope(exit){} is
uncommented, the return value (%eax) is never
On 2016-11-17 15:10, Andrei Alexandrescu wrote:
Lucia is working on https://issues.dlang.org/show_bug.cgi?id=16683 which
shows good promise in cleaning the cobwebs around Typeinfo. She looked
into matters and figured she needs to have TypeidExp.semantic() return
the lowered expression. In the
On 2016-11-17 11:16, Vladimir Panteleev wrote:
It seems to use MinGW-w64, which uses the GNU linker, which can't create
PDB files.
I thought the whole tool chain was based on LLVM, but I might be wrong.
--
/Jacob Carlborg
https://issues.dlang.org/show_bug.cgi?id=16102
--- Comment #2 from hst...@quickfur.ath.cx ---
May be related to https://issues.dlang.org/show_bug.cgi?id=16699
--
On Thursday, 17 November 2016 at 18:02:02 UTC, Jesse Phillips
wrote:
On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote:
Ok, but when the logger class may be more helpful that
function usage?
You'd use the logger class when you need to make customizations
or have multiple logging
Dne 17.11.2016 v 19:24 Daniel Kozak napsal(a):
Dne 17.11.2016 v 18:49 sanjayss via Digitalmars-d napsal(a):
https://www.techempower.com/benchmarks/#section=data-r13=ph=json
anyone know why vibe.d is shown as "Did not complete" in all tests?
I guess they have moved from Ubuntu 12.04 to 16.04
On 11/17/16 12:42 PM, John Colvin wrote:
On Thursday, 17 November 2016 at 16:28:08 UTC, Steven Schveighoffer wrote:
On 11/17/16 10:38 AM, John Colvin wrote:
On Thursday, 17 November 2016 at 13:59:25 UTC, Steven Schveighoffer
wrote:
[...]
Can't you use a template lambda alias argument to
On Thursday, 17 November 2016 at 06:33:06 UTC, Kim wrote:
Yes I see the higher level as a weakness. It may save you time
to integrate in D, but tries to hide complexity. Hiding
complexity can hurt in other ways.
I think I will go for the more C-like binding of DerelictLua; I
am fine for the
Dne 17.11.2016 v 18:49 sanjayss via Digitalmars-d napsal(a):
https://www.techempower.com/benchmarks/#section=data-r13=ph=json
anyone know why vibe.d is shown as "Did not complete" in all tests?
I guess they have moved from Ubuntu 12.04 to 16.04 which has PIE enabled
now, and there are
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote:
Why does D need both `@safe`, `@trusted` and `@system` when
Rust seems to get by with only safe (default) and `unsafe`?
https://dlang.org/spec/memory-safe-d.html
http://dlang.org/safed.html
D makes it illegal for @safe code to
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote:
Why does D need both `@safe`, `@trusted` and `@system` when
Rust seems to get by with only safe (default) and `unsafe`?
I'm pretty sure the Rust `unsafe` just does both D's `@system`
AND `@trusted`.
An unsafe function in Rust is
On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote:
Ok, but when the logger class may be more helpful that function
usage?
You'd use the logger class when you need to make customizations
or have multiple logging schemes.
I'd expect Vibe.d allows you to override the global logging
On Thursday, 17 November 2016 at 17:54:23 UTC, Suliman wrote:
On Thursday, 17 November 2016 at 17:45:31 UTC, Stefan Koch
wrote:
On Thursday, 17 November 2016 at 17:42:44 UTC, Suliman wrote:
On Thursday, 17 November 2016 at 16:46:37 UTC, Steven
Schveighoffer wrote:
On 11/17/16 11:28 AM,
On Thursday, 17 November 2016 at 17:45:31 UTC, Stefan Koch wrote:
On Thursday, 17 November 2016 at 17:42:44 UTC, Suliman wrote:
On Thursday, 17 November 2016 at 16:46:37 UTC, Steven
Schveighoffer wrote:
On 11/17/16 11:28 AM, Suliman wrote:
[...]
D does not require classes to write
https://www.techempower.com/benchmarks/#section=data-r13=ph=json
anyone know why vibe.d is shown as "Did not complete" in all
tests?
On Thursday, 17 November 2016 at 17:47:21 UTC, Nordlöw wrote:
On Thursday, 17 November 2016 at 17:33:33 UTC, Stefan Koch
wrote:
Memory is inherently unsafe. But it can be treated in a safe
way.
A language that does not allow you to express a middle ground
will have a lot of unsafe code that
On Thursday, 17 November 2016 at 17:33:33 UTC, Stefan Koch wrote:
Memory is inherently unsafe. But it can be treated in a safe
way.
A language that does not allow you to express a middle ground
will have a lot of unsafe code that could arguably be seen as
safe.
So in what way would, for
On Thursday, 17 November 2016 at 17:42:44 UTC, Suliman wrote:
On Thursday, 17 November 2016 at 16:46:37 UTC, Steven
Schveighoffer wrote:
On 11/17/16 11:28 AM, Suliman wrote:
[...]
D does not require classes to write functions. All a class
member function is anyway is a function with an
On Thursday, 17 November 2016 at 16:28:08 UTC, Steven
Schveighoffer wrote:
On 11/17/16 10:38 AM, John Colvin wrote:
On Thursday, 17 November 2016 at 13:59:25 UTC, Steven
Schveighoffer wrote:
[...]
Can't you use a template lambda alias argument to pushTo
instead, so
then you can instantiate
On Thursday, 17 November 2016 at 16:46:37 UTC, Steven
Schveighoffer wrote:
On 11/17/16 11:28 AM, Suliman wrote:
There is some functions that can be called without creation of
class.
For example: http://vibed.org/api/vibe.core.log/
As I understand I can create write log in two way. First
On Thursday, 17 November 2016 at 17:29:20 UTC, Nordlöw wrote:
On Thursday, 17 November 2016 at 17:27:01 UTC, Stefan Koch
wrote:
It allows encapsulating unsafe operations in safely-callable
wrappers.
So is this a limitation in Rust? If so, could you give a more
concrete D code example that
On Thursday, 17 November 2016 at 17:27:01 UTC, Stefan Koch wrote:
It allows encapsulating unsafe operations in safely-callable
wrappers.
So is this a limitation in Rust? If so, could you give a more
concrete D code example that cannot be implemented with only two
safety levels?
On Thursday, 17 November 2016 at 17:18:27 UTC, Nordlöw wrote:
Why does D need both `@safe`, `@trusted` and `@system` when
Rust seems to get by with only safe (default) and `unsafe`?
https://dlang.org/spec/memory-safe-d.html
http://dlang.org/safed.html
It allows encapsulating unsafe
Why does D need both `@safe`, `@trusted` and `@system` when Rust
seems to get by with only safe (default) and `unsafe`?
https://dlang.org/spec/memory-safe-d.html
http://dlang.org/safed.html
Does LDC have more diagnostics than DMD, typically unused
imports, variables, etc?
On Thursday, 17 November 2016 at 14:11:50 UTC, Stefan Koch wrote:
On Thursday, 17 November 2016 at 14:10:01 UTC, Andrei
Alexandrescu wrote:
auto tidSymbol = new Dsymbol(new
Identifier("__typeidImplT"));
Andrei
I am looking into it.
DSymbol is an abstract class.
It is not meant to
On 11/17/16 11:28 AM, Suliman wrote:
There is some functions that can be called without creation of class.
For example: http://vibed.org/api/vibe.core.log/
As I understand I can create write log in two way. First create instance
of Logger, second simply call function.
Why it's done so? Just as
On 11/17/16 10:38 AM, John Colvin wrote:
On Thursday, 17 November 2016 at 13:59:25 UTC, Steven Schveighoffer wrote:
nullStream!char
.bufferedInput
.pushTo(
arrayCastPipe!ubyte
.outputFile("output.txt")
);
But then the parameters to the "pushTo" hypothetical function don't
There is some functions that can be called without creation of
class.
For example: http://vibed.org/api/vibe.core.log/
As I understand I can create write log in two way. First create
instance of Logger, second simply call function.
Why it's done so? Just as shortcut? But is I create class
On 11/17/2016 04:36 PM, Andrei Alexandrescu wrote:
> On 11/17/2016 09:16 AM, Dicebot wrote:
>> 2) It is a regular update. In that case revision number is simply git
>> history. For example DIP1002 is currently at revision 7 (git log
>> --pretty=oneline DIPs/DIP1002.md | wc -l).
>>
>> Same goes for
On Thursday, 17 November 2016 at 15:26:21 UTC, John Colvin wrote:
Regardless of the outcome, I just want to commend whoever wrote
the rejection text* on doing such a clear and comprehensive
job. I'm sure it must be disappointing for a DIP author to have
it rejected, but detailed, constructive
On Thursday, 17 November 2016 at 13:59:25 UTC, Steven
Schveighoffer wrote:
nullStream!char
.bufferedInput
.pushTo(
arrayCastPipe!ubyte
.outputFile("output.txt")
);
But then the parameters to the "pushTo" hypothetical function
don't know what the source type is before
On Thursday, 17 November 2016 at 11:37:09 UTC, Dicebot wrote:
Disposition: REJECT. A proposal for a similar or identical
feature would need to be include qualitatively new
motivation/evidence of usefulness.
Please follow the link for the full review text / rationale:
https://issues.dlang.org/show_bug.cgi?id=16699
anonymous4 changed:
What|Removed |Added
See Also|
https://issues.dlang.org/show_bug.cgi?id=16102
anonymous4 changed:
What|Removed |Added
See Also|
On Thursday, 17 November 2016 at 11:37:09 UTC, Dicebot wrote:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1002.md#review
We do exception tests like this: http://dpaste.com/0EAZQE4
https://issues.dlang.org/show_bug.cgi?id=16699
Marc Schütz changed:
What|Removed |Added
CC||schue...@gmx.net
---
On 11/17/2016 09:16 AM, Dicebot wrote:
2) It is a regular update. In that case revision number is simply git
history. For example DIP1002 is currently at revision 7 (git log
--pretty=oneline DIPs/DIP1002.md | wc -l).
Same goes for update of reviews - everything is tracked in git history.
At any
https://issues.dlang.org/show_bug.cgi?id=16699
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--
https://issues.dlang.org/show_bug.cgi?id=16102
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--
https://issues.dlang.org/show_bug.cgi?id=16700
Issue ID: 16700
Summary: New debug experience: enums are integers
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: enhancement
On 11/17/2016 03:20 PM, Andrei Alexandrescu wrote:
> On 11/17/2016 06:37 AM, Dicebot wrote:
>> Disposition: REJECT. A proposal for a similar or identical feature would
>> need to be include qualitatively new motivation/evidence of usefulness.
>>
>> Please follow the link for the full review text /
https://issues.dlang.org/show_bug.cgi?id=16698
ag0ae...@gmail.com changed:
What|Removed |Added
CC||ag0ae...@gmail.com
--- Comment #2 from
https://issues.dlang.org/show_bug.cgi?id=16699
Issue ID: 16699
Summary: [REG 2.070] stack corruption with scope(exit)
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: wrong-code
On Thursday, 17 November 2016 at 14:10:01 UTC, Andrei
Alexandrescu wrote:
Lucia is working on
https://issues.dlang.org/show_bug.cgi?id=16683 which shows good
promise in cleaning the cobwebs around Typeinfo. She looked
into matters and figured she needs to have TypeidExp.semantic()
return the
https://issues.dlang.org/show_bug.cgi?id=16683
--- Comment #2 from Andrei Alexandrescu ---
See also http://forum.dlang.org/post/o0kdnp$2i2t$1...@digitalmars.com
--
Lucia is working on https://issues.dlang.org/show_bug.cgi?id=16683 which
shows good promise in cleaning the cobwebs around Typeinfo. She looked
into matters and figured she needs to have TypeidExp.semantic() return
the lowered expression. In the code below
getFuncTemplateDecl(tidSymbol); //
https://issues.dlang.org/show_bug.cgi?id=16683
Andrei Alexandrescu changed:
What|Removed |Added
CC||and...@erdani.com
On 11/17/16 7:32 AM, qznc wrote:
On Thursday, 17 November 2016 at 02:55:46 UTC, Meta wrote:
Thanks for recording the presentation, your IOPipe library is pretty
interesting.
+1
Especially for any parser, this looks like a great solution!
Thanks! I agree, I hope to prove that with some
On 11/17/16 2:22 AM, H. S. Teoh via Digitalmars-d wrote:
I'm running into a std.regex memory corruption bug in git HEAD:
https://issues.dlang.org/show_bug.cgi?id=16698
and I can't seem to find a way to work around the problem besides
recompiling with an older compiler. Any ideas??
On 11/17/2016 06:37 AM, Dicebot wrote:
Disposition: REJECT. A proposal for a similar or identical feature would
need to be include qualitatively new motivation/evidence of usefulness.
Please follow the link for the full review text / rationale:
On 11/17/2016 06:35 AM, Dicebot wrote:
Disposition: REJECT. A proposal for a similar or identical feature would
need to be include qualitatively new motivation/evidence of usefulness.
Please follow the link for the full review text / rationale:
On 11/17/2016 06:35 AM, Dicebot wrote:
Disposition: REJECT. A proposal for a similar or identical feature would
need to be include qualitatively new motivation/evidence of usefulness.
Please follow the link for the full review text / rationale:
On Thursday, 17 November 2016 at 02:55:46 UTC, Meta wrote:
Thanks for recording the presentation, your IOPipe library is
pretty interesting.
+1
Especially for any parser, this looks like a great solution!
The output (valves) looks meh, though. I hope, you discover
something more elegant.
I just updated ~master with a little tool that will print a
dot-file with describing the internal Tree-structure of database.
All you need to do is to import layout2dot.
And call TreeLayoutToDot on your database.
it will give you back a string which you can then give to
graph-viz.
If dot
On Tuesday, 1 November 2016 at 22:01:23 UTC, Alfred Newman wrote:
Greetings,
I need some help with dub libraries.
[...]
test.d assumes that sqlite.d is given on the same compile
command-line.
This is the case when sqlite-d is build as a stand-alone app.
If you want to integrate it I advise
On Wednesday, 16 November 2016 at 17:34:58 UTC, Mike Parker wrote:
Why is it a wart? The MS toolchain is the system development
environment for Windows. On Mac OS X, it's Xcode, which is a 1+
GB download before you can do any development with clang or dmd
or anything that depends on it. On
https://issues.dlang.org/show_bug.cgi?id=16698
Marc Schütz changed:
What|Removed |Added
CC||schue...@gmx.net
---
Disposition: REJECT. A proposal for a similar or identical feature would
need to be include qualitatively new motivation/evidence of usefulness.
Please follow the link for the full review text / rationale:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1002.md#review
signature.asc
Disposition: REJECT. A proposal for a similar or identical feature would
need to be include qualitatively new motivation/evidence of usefulness.
Please follow the link for the full review text / rationale:
https://github.com/dlang/DIPs/blob/master/DIPs/DIP1001.md#review
signature.asc
On Wednesday, 16 November 2016 at 20:20:07 UTC, Anonymouse wrote:
receiveTimeout(0.seconds,
/* ... */
);
Thanks!
Sorry, no time for a PR right now. Just found this funny mistake:
"In D, string, wstring, and dstring are UTF-8, UTF-16, and UTF-32
encoded strings respectfully. Their character types are char,
wchar, and dchar."
s/respectfully/respectively/
https://tour.dlang.org/tour/en/gems/unicode
On Wednesday, 16 November 2016 at 18:03:31 UTC, Jacob Carlborg
wrote:
Perhaps we should take the missing parts from the ELLCC tool
chain [1]. It's a cross-compiler tool chain based on LLVM. It
contains a compiler, linker, C/C++ standard library, other
binutils and is completely self contained.
On Thursday, 17 November 2016 at 06:33:06 UTC, Kim wrote:
Yes I see the higher level as a weakness. It may save you time
to integrate in D, but tries to hide complexity. Hiding
complexity can hurt in other ways.
I think I will go for the more C-like binding of DerelictLua; I
am fine for
On Thursday, 17 November 2016 at 09:40:45 UTC, Carlin St Pierre
wrote:
Is it possible to get the list of usages of a template during
compile time?
For example:
class Foo
{
void bar(T)(T t)
{
}
}
void main()
{
Foo foo = new Foo;
foo.bar(1); // int
On Wednesday, 16 November 2016 at 17:19:28 UTC, Patrick Schluter
wrote:
Another issue I had with the Microsoft Package besides the
size it wants on the system drive is the difficulty to even
get it to download behind a corporate proxy.
Doesn't it pick whatever is configured in the system
Is it possible to get the list of usages of a template during
compile time?
For example:
class Foo
{
void bar(T)(T t)
{
}
}
void main()
{
Foo foo = new Foo;
foo.bar(1); // int
foo.bar(2f); // float
foo.bar("3"); // string
}
//
On Wednesday, 16 November 2016 at 22:43:55 UTC, lafoldes wrote:
Hi,
I'd like to create a UTF16 text file on Windows 7, using
std.stdio.File and std.stdio.File.write... functions (so no
binary write, no Win32 functions).
I was experimenting with variations of this code…:
import std.stdio;
On Thursday, 17 November 2016 at 08:39:57 UTC, Andrea Fontana
wrote:
I follow this thread every day. I hope you'll write an article
on dlang blog when the work will be completed :)
Mike Parker is going to write an short article about it based on
information I gave him via mail.
I am
https://issues.dlang.org/show_bug.cgi?id=16661
--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/ce85fd60a9fe3819907857b487f65bd977ca1f26
fix Issue 16661 - failing dstring/wstring format string
https://issues.dlang.org/show_bug.cgi?id=16661
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
On Thursday, 17 November 2016 at 05:35:33 UTC, Stefan Koch wrote:
On Wednesday, 16 November 2016 at 14:44:06 UTC, Stefan Koch
wrote:
And Again a bit of bad news.
Due to problems in the lowering of function arguments the
implementation of strcat is delayed again.
The bug does not affect
85 matches
Mail list logo