That was indeed what I was using in my updated ref based reimplementation
of formattedRead (see my original post for the link), and the other
functions getopt, readf) are the same AFAIK.
so why not add it to phobos:
it's safer (no null / invalid pointers)
simpler user code
more consistent with
In a number of cases I get very large compile error messages after running
rdmd main_module.d
Upon inspection, running rdmd -v fun.d reveals that the irrelevant error
messages are in different semantic3 passes:
semantic3 module_with_relevant_error
relevant error (eg: Error: no property 'x' for
I'd like to be able to use UFCS with fully qualified function names.
A typical use case is to disambiguate , as in the following case:
import std.path;
import std.string;
void main(){
//Error: std.path.join()(const(char)[] p1, const(char)[] p2, const(char[
])[] more...) at ... conflicts
Timothee Cour:
I'd like to be able to use UFCS with fully qualified function
names.
auto a=.(std.path.join)(\n);
It seems an acceptably-looking syntax. But maybe D.learn is not
the best place to discuss new D syntax.
Regarding new UFCS-related syntax, I sometimes wish for:
alias T
Timothee Cour:
auto a=.(std.path.join)(\n);
I suggest to present it in the main D newsgroup. And if people
don't hate it, to later write an enhancement request in bugzilla.
Bye,
bearophile
On Monday, 20 May 2013 at 13:07:06 UTC, MrSmith wrote:
On Monday, 20 May 2013 at 12:42:50 UTC, evilrat wrote:
do you have referenced projects in xamarin? if so, any time
you change something in one of such projects you need to
rebuild whole solution, that one of many reasons why i don't
use
On Sunday, 19 May 2013 at 11:37:54 UTC, MrSmith wrote:
I am using Derelict for my GUI project and after moving to the
newest version i am getting following errors.
These errors are occuring in debug mode only.
wait, are you using 2.063 beta?
Here's Gui.d:
module Gui;
private import gtk.MainWindow;
private import ProjectFile;
// @@TODO: remove
private import gtk.Label;
class Gui : MainWindow
{
private:
ProjectFile* proj;
public:
this() {
super(Our Audio Synth App);
I want to create an enum of some number of types, eg. { ubyte,
ushort, uint, float }
It should be straightforward to get a member of the enum from the
type itself. Basically I have an object that stores some typed
data, but the type may not be known at compile time, only the set
of possible
On Tuesday, 21 May 2013 at 03:15:46 UTC, Anthony Goins wrote:
??
ProjectFile.ProjectFile.loadLastProjectOrNew()
??
maybe.
That did it!!! Lol crazy. :D Thx
Should I put my static methods at module scope then?
On 05/20/2013 08:20 PM, Diggory wrote:
I want to create an enum of some number of types, eg. { ubyte, ushort,
uint, float }
It should be straightforward to get a member of the enum from the type
itself. Basically I have an object that stores some typed data, but the
type may not be known at
On Tuesday, 21 May 2013 at 04:17:26 UTC, Enjoys Math wrote:
Should I put my static methods at module scope then?
just don't give symbol(struct/class/function/variable) names same
as module
On Tuesday, 21 May 2013 at 04:36:57 UTC, Ali Çehreli wrote:
Sounds like std.variant.Algebraic:
http://dlang.org/phobos/std_variant.html#.Algebraic
Ali
I don't see how I could use that. Algebraic is for storing a
value, I'm trying to store just a type.
21-May-2013 01:39, Timothee Cour пишет:
That was indeed what I was using in my updated ref based
reimplementation of formattedRead (see my original post for the link),
and the other functions getopt, readf) are the same AFAIK.
so why not add it to phobos:
it's safer (no null / invalid pointers)
On 05/20/2013 09:58 PM, Diggory wrote:
On Tuesday, 21 May 2013 at 04:36:57 UTC, Ali Çehreli wrote:
Sounds like std.variant.Algebraic:
http://dlang.org/phobos/std_variant.html#.Algebraic
Ali
I don't see how I could use that. Algebraic is for storing a value, I'm
trying to store just a
http://d.puremagic.com/issues/show_bug.cgi?id=10120
Maxim Fomin ma...@maxim-fomin.ru changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4575
Jameson beatgam...@gmail.com changed:
What|Removed |Added
CC||beatgam...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=10116
fw..vd...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=5176
sibaqexozequg...@tempomail.fr changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #29 from deadalnix deadal...@gmail.com 2013-05-20 01:07:53 PDT ---
(In reply to comment #28)
Copying my comment from the forums so it won't get lost:
(http://forum.dlang.org/post/fuqkpmkfdjxwgmzfi...@forum.dlang.org)
Isn't the
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #30 from sibaqexozequg...@tempomail.fr 2013-05-20 01:13:22
PDT ---
(In reply to comment #29)
The thing is that you may get over the page protection by several
dereferences.
What do you mean by several dereferences?
Can you
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #31 from deadalnix deadal...@gmail.com 2013-05-20 01:26:56 PDT ---
(In reply to comment #30)
(In reply to comment #29)
The thing is that you may get over the page protection by several
dereferences.
What do you mean by
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #32 from sibaqexozequg...@tempomail.fr 2013-05-20 02:08:00
PDT ---
(In reply to comment #31)
Yes sure. Let's consider the example below :
struct Foo {
ubyte[512] bar;
}
struct Buzz {
ubyte[256] pad;
http://d.puremagic.com/issues/show_bug.cgi?id=3820
--- Comment #7 from Martin Nowak c...@dawg.eu 2013-05-20 03:20:58 PDT ---
IIRC this switch is implemented as below. Unless we expect the block to always
run, as in comment 3, it's difficult to fix.
int foo(int a)
{
switch (var)
{
http://d.puremagic.com/issues/show_bug.cgi?id=10122
Summary: `Appender` doesn't work with disabled default
construction
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
http://d.puremagic.com/issues/show_bug.cgi?id=10123
Summary: Can't subtract positive number from length of array of
struct with disabled default construction
Product: D
Version: D2
Platform: All
OS/Version: All
http://d.puremagic.com/issues/show_bug.cgi?id=10123
--- Comment #1 from Denis Shelomovskij verylonglogin@gmail.com 2013-05-20
15:53:15 MSD ---
Looks like Issue 10124 have to be fixed first.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are
http://d.puremagic.com/issues/show_bug.cgi?id=10125
Summary: readln!dchar misdecodes Unicode non-BMP
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=10125
--- Comment #1 from fw..vd...@gmail.com 2013-05-20 05:33:52 PDT ---
queued pull request #1296
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #33 from Andrei Alexandrescu and...@erdani.com 2013-05-20
05:34:03 PDT ---
(In reply to comment #32)
Buzz* b;
auto deref1 = (b.qux[7]); // take address below 4kb.
deref1.bar[300] = 0; // offset is bellow 4kb, but the address
http://d.puremagic.com/issues/show_bug.cgi?id=5176
--- Comment #35 from Andrei Alexandrescu and...@erdani.com 2013-05-20
06:05:16 PDT ---
(In reply to comment #34)
(In reply to comment #33)
(In reply to comment #32)
Buzz* b;
auto deref1 = (b.qux[7]); // take address below 4kb.
http://d.puremagic.com/issues/show_bug.cgi?id=9044
Rainer Schuetze r.sagita...@gmx.de changed:
What|Removed |Added
CC||r.sagita...@gmx.de
http://d.puremagic.com/issues/show_bug.cgi?id=10106
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #2
http://d.puremagic.com/issues/show_bug.cgi?id=10122
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=10122
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull, rejects-valid
http://d.puremagic.com/issues/show_bug.cgi?id=10103
--- Comment #2 from github-bugzi...@puremagic.com 2013-05-20 09:13:01 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=10103
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=8074
Martin Nowak c...@dawg.eu changed:
What|Removed |Added
CC||c...@dawg.eu
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=7549
Martin Nowak c...@dawg.eu changed:
What|Removed |Added
CC||c...@dawg.eu
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=7549
--- Comment #6 from timon.g...@gmx.ch 2013-05-20 12:06:39 PDT ---
(In reply to comment #2)
I agree with your design.
Actually, I think is(typeof(foo)) should be consistent with whether or not foo
compiles.
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=10122
--- Comment #2 from github-bugzi...@puremagic.com 2013-05-20 12:12:50 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
http://d.puremagic.com/issues/show_bug.cgi?id=10122
--- Comment #3 from github-bugzi...@puremagic.com 2013-05-20 12:14:17 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/phobos
http://d.puremagic.com/issues/show_bug.cgi?id=10122
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5229
David Nadlinger c...@klickverbot.at changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5229
--- Comment #5 from Maxime Chevalier-Boisvert maximechevali...@gmail.com
2013-05-20 14:51:28 PDT ---
(In reply to comment #4)
@Lars: If she is using DMD on Windows, the root cause might in fact be the
same.
It turned out to be a problem
http://d.puremagic.com/issues/show_bug.cgi?id=10106
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=10106
--- Comment #4 from Dmitry Olshansky dmitry.o...@gmail.com 2013-05-20
22:48:54 PDT ---
(In reply to comment #3)
Fix assert fail:
https://github.com/D-Programming-Language/dmd/pull/2055
Why the test is 'fail compilation' when it did
201 - 248 of 248 matches
Mail list logo