On 2014-06-19 16:37, Craig Dillabaugh wrote:
Is this any better than?
if(!a) a = b;
I would say it's about the same as a ?? b is better than a ? a : b.
It's get better since you can use it directly in a return statement:
void a ()
{
return a ??= new Object;
}
--
/Jacob Carlborg
On 2014-06-18 21:36, H. S. Teoh via Digitalmars-d wrote:
Here's a first stab at a library solution:
I thought of adding a field to indicate if a value if present or not. If
the value is accessed when it's not present it would assert/throw.
--
/Jacob Carlborg
On 2014-06-23 12:52, seany wrote:
Doese tango come with a readline fucntion for d2?
from this site, i was unable to find anything in my search :
http://siegelord.github.io/Tango-D2/
The documentation for Tango and D1 can be used:
http://dsource.org/projects/tango/wiki/ChapterIoConsole
--
On 2014-06-23 22:34, Jonathan M Davis via Digitalmars-d wrote:
It would be very cool if we could remove @ from all of the built-in
attributes, but the whole reason that they have them in the first place is
because it was decided that we didn't want to add new keywords - and that was
several
On 2014-06-24 18:52, Yota wrote:
On Sunday, 22 June 2014 at 08:15:45 UTC, Andrei Alexandrescu wrote:
On 6/21/14, 3:38 PM, H. S. Teoh via Digitalmars-d wrote:
On Sat, Jun 21, 2014 at 03:26:45PM -0700, Andrei Alexandrescu via
Digitalmars-d wrote:
On 6/19/14, 1:29 PM, Etienne wrote:
On 2014-06-24 22:52, Ary Borenszweig wrote:
And in Ruby it's just ||=. How more intuitive can it get?
a = nil
a ||= 1
The or that you are discussing here is just an || in Ruby:
b = nil || 1
Yeah, but that behaves a bit different in D.
--
/Jacob Carlborg
On 2014-06-25 01:32, Marco Nembrini wrote:
Wouldn't an attribute like @nogc only be a keyword for attribute
symbols, while something like nothrow is a keyword for everything?
I guess that's true.
E.g. using @nogc means I can't define my own nogc UDA but I can have a
function or variable
On 2014-06-26 02:41, Walter Bright wrote:
I suggest that your issues with global variables can be mitigated by
adopting a distinct naming convention for your globals. Frankly, I think
a global variable named x is execrable style - such short names should
be reserved for locals.
No need to
On 2014-06-27 03:16, Nick Sabalausky wrote:
There's other times I've had to get by without debuggers too. Like, in
the earlier days of web dev, it was common to not have a debugger. Or
debugging JS problems that only manifested on Safari (I assume Safari
probably has JS diagnostics/debugging
On 2014-06-27 00:57, Sean Kelly wrote:
Yep. A lot of this is probably because as a server programmer
I've just gotten used to finding bugs this way as a matter of
necessity, but in many cases I actually prefer it to interactive
debugging. For example, build core.demangle with -debug=trace
and
On 2014-06-26 16:37, H. S. Teoh via Digitalmars-d wrote:
This is probably because without -D, the entire ddoc code doesn't even
run (which probably saves on compilation time), and comments are not
kept by the parser/lexer, so by the time the compiler evaluates
__traits(comment...), it doesn't
On 2014-06-26 23:16, H. S. Teoh via Digitalmars-d wrote:
Note that the word tuple in D is used to refer to two very different
things. What you want is essentially an anonymous struct, and should be
adequately covered by std.typecons.tuple.
I would like some form of anonymous struct, with some
On 2014-06-28 08:19, dennis luehring wrote:
thx for the examples - never though of these problems
i personaly would just forbid any shadowing and single-self-assign
and then having unique names (i use m_ for members and p_ for parameters
etc.) or give a compile error asking for this.x or .x
On 2014-06-28 14:20, Ary Borenszweig wrote:
In Ruby the usage of a variable is always prefixed: `@foo` for instance
vars, `$foo` for global variable, `FOO` for constant. You can't make a
mistake. It's... perfect :-)
Oh, that's where you're wrong, very wrong :). Take this for example:
class
On 2014-07-01 10:58, Dicebot wrote:
Doing logo restyling together with web site update is not unheard of.
Why do you see this a big deal? As long as it is recognizable and not
fundamentally different of course. Having logo that simply does not fit
into new design is worse.
Some companies also
On 06/07/14 20:09, Nordlöw wrote:
Have anybody cooked up some bash completion for dub?
That would be nice to have.
--
/Jacob Carlborg
On 06/07/14 02:18, Walter Bright wrote:
Sure, but nobody is going to blame us for it :-) whereas they will for
an official D implementation.
If we get D bindings and wrappers of a C library in Phobos, people using
it might not no it's actually just bindings/wrappers and start to blame us.
On 06/07/14 23:38, Walter Bright wrote:
I'd turn that around and ask where you are seeing potential savings?
Note that you can run obj2asm on the generated object files, please do
so and point out where things can be cached.
Templates perhaps?
--
/Jacob Carlborg
On 05/07/14 05:00, deadalnix wrote:
We need various logos, as they'll be more or less readable at various
scales. The flat-minimal is especially important as this is the only one
that is going to scale down without become unrecognizable.
I agree. We need something that can be used for icons.
On 04/07/14 03:17, Brad Anderson wrote:
Actually, mine is less accurate than I thought (I made it by
tracing before I knew an SVG was available).
Here's some variations made from the original SVG by just
deleting paths but leaving them all unaltered:
On 07/07/14 09:26, Iain Buclaw via Digitalmars-d wrote:
What's the list of switches accepted by dub?
I'm convinced that --help doesn't show them all. ;)
I'm pretty sure that dub --help only shows the global options. You
have to run dub command --help to find the flags of a specific command.
On 07/07/14 10:05, Alix Pexton wrote:
https://drive.google.com/file/d/0B3i8FWPuOpryM0VJQlU5ZDJNcFk/edit
https://drive.google.com/file/d/0B3i8FWPuOpryRW9PODBMUUZyMlE/edit
I don't think that looks so nice.
--
/Jacob Carlborg
On 07/07/14 11:14, Nordlöw wrote:
So I put together something that works in the majority of cases even for
command specific flags and completion registered packages.
https://github.com/nordlow/scripts/blob/master/dub-completion.bash
Awesome, I'll have to give it a try later.
--
/Jacob
On 07/07/14 10:23, Walter Bright wrote:
They're already cached.
Does that include templates instantiated with different types but which
results in the same code?
--
/Jacob Carlborg
On 07/07/14 12:20, Alix Pexton wrote:
Which one, Package or Sourcefile or both?
Both, actually.
These are what I'm currently using myself, but I'm not 100% happy with
how they appear when small. I'm trying to work with in the constraints
that that seem to have emerged over what elements of
On 07/07/14 14:09, Alix Pexton wrote:
Shame, I kinda liked the cardboard box, I surprised myself with how
quickly it came together.
What I don't like is that it looks like a standard icon with the D logo
just added on top.
Have a look at this icon from Adium [1]. This icon is used for
On 08/07/14 19:54, David Nadlinger wrote:
Hi all,
I am excited to share news about two changes that recently made their
way into the development version of LDC, changes that might be
interesting for many of you Linux users out there.
The first is that LDC now supports linker-level dead code
On 09/07/14 00:21, bearophile wrote:
9. Built-in tuples usable in all the most important situations (with a
syntax that doesn't kill possible future improvements of the switch
statement to perform basic pattern matching on structs that have an
optional method named unapply).
I think it would
On 09/07/14 21:54, Brian Schott wrote:
The argument for
requiring @nogc on C library callbacks makes sense to me, so I'd like to
know if this was intentional.
Why shouldn't you be able to allocate GC memory from C?
--
/Jacob Carlborg
On 09/07/14 20:34, Nick Sabalausky wrote:
Can't it be used as a complete web framework? I mean, assuming you're
happy with the built-in templating and DB options? Or is everyone using
web framework here to really mean CMS?
I don't know. But to me they're not the same. You can use a web
On 09/07/14 23:46, Johannes Pfau wrote:
The dlang page doesn't list all downloads or distribution packages, but
I don't want to duplicate information on two pages and keep them
synchronized and up-to-date.
Then do some screen scraping/iframe or similar.
--
/Jacob Carlborg
On 09/07/14 21:37, Nick Sabalausky wrote:
What I've started doing, and absolutely love so far, is to write my
forms purely in the HTML template (with a little bit a custom
tags/attributes), then use Adam's HTML DOM to read that HTML form and
generate all the backend form-handing *from* the HTML
On 09/07/14 23:46, Johannes Pfau wrote:
I think there's lots of valuable information on the wiki btw, which is
often overlooked for some reason. For contributors, wiki.dlang.org is
much nicer as you don't need ddoc, git, push rights/somebody to merge
pull requests, etc.
Is it only me that
On 09/07/14 15:45, Meta wrote:
As far as I know, there's no reason we can't add pattern matching to
switch or final switch or both. There's no ambiguity because right now
it's not possible to switch on structs or classes. See Kenji's DIP32 for
syntax for tuples that could be leveraged.
On 09/07/14 21:21, Walter Bright wrote:
Dustmite is just one example of this, but it's on top of my head because
I went looking for a link to it to go with the Reddit pointer to the
video. It fits in quite nicely with my previous antics at discovering
there were no links to gdc or ldc
On 01/07/14 19:45, Gary Willoughby wrote:
People need to have the perception that the brand is strong and that the
product is stable. The logo reflects this. The logo is an icon of D as a
product. Just casually tossing it aside is allowing further extension of
user perceptions of
On 10/07/14 07:58, Gary Willoughby wrote:
Which is why we need a kick ass website designed to encourage developers
to stay and learn more about D and what is available. BTW have you seen
Haskell's new site: http://new-www.haskell.org/
Scala has a pretty nice looking site as well:
On 10/07/14 05:59, logicchains wrote:
It's been implemented in Rust[1] via a macro, and can be implemented in
Haskell[2] without compiler support, so I'd be surprised if it wasn't
already possible to implement in D. It wouldn't however be as useful as
Go's until D gets message passing between
On 10/07/14 09:52, Walter Bright wrote:
Just mentioning that the #1 advertized feature is No More Null
Errors. Putting
that here for the record.
The view examples link doesn't work. Oh well.
(Looking at the source code to the page, it looks like the problem is
due to a null error as the link
On 10/07/14 01:57, H. S. Teoh via Digitalmars-d wrote:
[...]
I'm sure there are plenty of holes in this proposal, so destroy away.
;-)
You should post this in a new thread.
I'm wondering if a lot more data can be statically allocated. Then
passed by reference to functions taking scope
On 2014-07-10 13:51, Alix Pexton wrote:
Shame the spiral staircase in the picture of the office isn't left
handed, otherwise that would be their logo too ^^
Hehe, yeah. It looks like it's designed after the logo.
--
/Jacob Carlborg
On 2014-07-10 15:51, David Nadlinger wrote:
So far it is only enabled on Linux, as I made the necessary adjustments
to the druntime module registration code and so on while working on
shared library support there.
That being said, supporting this should be considerably easier for
platforms
On 2014-07-10 15:53, Adam D. Ruppe wrote:
I never did this automatically, I just wrote change files in sql myself
before taking the RoR job... and personally I think Rails migrations
aren't all that great, but it is nice that they are standardized; I can
do the rails g migration here and the
On 2014-07-10 18:19, Jonathan Crapuchettes wrote:
BTW, we at EMSI use DVM on all our computers. Thanks for creating it.
That's great to hear :)
--
/Jacob Carlborg
On 2014-07-10 18:34, Dicebot wrote:
Inclusion to tools repo is a bit more restrictive - traditionally there
only tools with Phobos-only dependencies as far as I can see.
Yeah, that's understandable.
--
/Jacob Carlborg
On 2014-07-09 20:34, Sönke Ludwig wrote:
However, there is a plan for using dynamic libraries to support seamless
live editing/reloading of individual Diet templates [2].
Since LDC uses LLVM as its backend which supports JIT compilation it
might be possible to JIT compile the Diet templates
On 10/07/14 20:12, Jonathan Marler wrote:
I had an idea this morning and wanted to post it to see what people think.
I know we have alot of attributes already but I'm wondering if people
think adding a thread attribute could be useful. Something that says a
variable or function or class/struct
On 10/07/14 21:21, safety0ff wrote:
This isn't a plain old C function, it's an asynchronous signal handler.
I though the signal handler was just an example and this was a more
general question.
--
/Jacob Carlborg
On 10/07/14 20:15, H. S. Teoh via Digitalmars-d wrote:
class C {}
C myFunc(C obj) {
obj.doSomething();
return obj; // will be rejected if parameters are scoped by
default
}
Hmm, why wouldn't that work? The scope where you called myFunc
On 11/07/14 03:35, Delorien wrote:
Hi,
I have a C macro, which takes an argument, log it and call a function.
So, if I had a source code like this:
{
_logfx(x + 10);
}
the actual code would be
DebugLog(x + 10);
fx(x + 10);
Can I make similar tricks in the D language?
No, I don't
On 11/07/14 01:15, Nick Sabalausky wrote:
I'm kinda jealous of those pro gamedevs with a
dual-monitor, one of them being vertical, setup. I should do that. With
one of those desks that can adjust to/from standing position. That'd be
sweet :)
I have a colleague that has five monitors (kind
On 11/07/14 01:15, Nick Sabalausky wrote:
And then there's responsive which *claims* to be mobile-first design
(which would be ok), but in actual practice it's really more like
mobile-only design.
Actually, there was a site here to check the time tables for the subway,
buses and son on. They
On 11/07/14 00:24, H. S. Teoh via Digitalmars-d wrote:
I used to love pdfs in blissfully ignorance... until I recently looked
up the format. You wouldn't believe this, but did you know that it's
actually possible to embed a *video* in a pdf file? Embed another pdf
inside a pdf in a hierarchical
On 10/07/14 22:31, Walter Bright wrote:
I don't know the PR link nor do I know what pseudonym you use on github,
so please help!
I reiterate my complaint that people use virtual functions for their
github handles. There's no reason to. Who knows that 9il is actually
Ilya Yaroshenko? Took me 3
On Friday, 11 July 2014 at 17:44:29 UTC, Frustrated wrote:
So why isn't there a link to previous versions of dmd? I have a
regression I need to test out but can't find 2.064!
There's a perfect tool for that called DVM [1]. It's a
cross-platform tool that allows you to install any version of
On 2014-07-11 16:29, H. S. Teoh via Digitalmars-d wrote:
Because the scope of the parameter 'obj' is defined to be the scope of
myFunc only, according to the current proposal.
Wouldn't it be possible to define the scope of a parameter to the
caller's scope?
--
/Jacob Carlborg
On 2014-07-11 16:14, H. S. Teoh via Digitalmars-d wrote:
auto result = logAndCall!(myFunc, q{1.0 + 2.0/4});
You're passing it as a string.
--
/Jacob Carlborg
On 2014-07-12 01:02, Dicebot wrote:
Whatever is ideal solution, we better focus on something practical that
can be realistically added to the language within current priorities
(stability, minimizing addition of new features, clearing corner cases
etc.)
Funny thing you should mention
On 2014-07-12 01:46, Idan Arye wrote:
I assume read-only reflection means that functions produce ASTs that
are directly embedded into the code(rather than modifying the AST of
existing code) which is the same as with macros.
No, I'm pretty sure he means you can only reflect on the AST. Not
On 2014-07-11 19:07, Jonathan Marler wrote:
I'm not sure how AST macros would assist in thread safety the way that
this feature would. Maybe you could elaborate?
Looking at the first example:
@thread:main
int mainThreadGlobal;
@thread:main
int main(string[] args)
{
// Start the worker
On 2014-07-11 16:36, Dicebot wrote:
Round of a formal review before proceeding to voting. Subject for Phobos
inclusion : http://wiki.dlang.org/Review/std.logger authored by Robert
Schadek.
* The free functions are not documented
* The API of the free functions look complicated and have cryptic
On 2014-07-12 05:59, Rikki Cattermole wrote:
Something I've been thinking about is an overload for with statement.
E.g.
with(new MyAllocator) {
void*[256] values;
//...
}
class MyAllocator : IGC {
private {
IGC prevGC;
}
void opWithIn() {
On 2014-07-13 14:01, Robert burner Schadek wrote:
The compiler does not create ddoc for mixined source
Hasn't that been fixed recently? If not, then I don't think you should
use mixins. We can't have undocumented functions.
The names are quite easy if you look at the bnf.
If you don't
On 2014-07-13 13:57, Robert burner Schadek wrote:
Anyone else?
I agree with Sönke.
if I change it back, people will argue that that is redundant and
unintuitive. Than I will change it back again and the discussion starts
again.
logError is a lot more clear and descriptive. I think that's
On 2014-07-13 14:01, Rikki Cattermole wrote:
Definitely, but there is a rather big difference in requirements to
implement them ;)
But in saying this, we might be able to move the with statement into
druntime via AST macros. Should it have the ability to modify the this
context like with
On 2014-07-13 14:33, Timon Gehr wrote:
They are not a great liability. They are a simple feature. They take up
less than 200 lines of code in my D frontend implementation, _together_
with template mixins.
Do you have the source for your frontend available somewhere?
--
/Jacob Carlborg
On 2014-07-13 14:45, Dicebot wrote:
Exactly. I think this should be popularized as default style via
std.logger documentation.
If that's the style everyone is encouraged to use, why not force it then?
--
/Jacob Carlborg
On 2014-07-13 14:21, Dicebot wrote:
It is effectively same as using static namespace class but C-style -
mangling namespace into function name. `log.error` looks descriptive
enough to me.
I think most usage would _not_ look like that because of the free functions.
--
/Jacob Carlborg
On 13/07/14 16:37, H. S. Teoh via Digitalmars-d wrote:
We could, but how would that help static analysis within the function's
body, since the caller's scope is unknown?
Won't the caller's scope always outlive the callee's?
--
/Jacob Carlborg
On 13/07/14 17:16, Dicebot wrote:
Because starting with documentation in Phobos and than proceeding with
convincing Walter to add built-in support for such idiom is much more
realistic way than the other way around ;)
built-in as in built-in to the language?
--
/Jacob Carlborg
On 13/07/14 17:00, H. S. Teoh via Digitalmars-d wrote:
Yeah I always get annoyed by these security screening questions,
especially when they don't let you write your own!!! They mostly involve
trivia like relatives' names, dates and places, etc., that are far too
easy to guess by a social
On 13/07/14 17:11, Dicebot wrote:
AST reflection + string mixins can do anything that AST macros can do -
assuming one does not want to allow transparent macros (without explicit
mixin/macro keyword at call site) which is a terrible idea in my opinion
anyway.
I think that is the same thing as
On 13/07/14 17:17, Timon Gehr wrote:
(Just to be sure: I was talking about string mixins, not macros, I
haven't implemented macros.)
Aha, I misunderstood that.
Currently it isn't. It isn't really in a state where I'd like to see it
released. There are some language features still missing,
On 14/07/14 11:35, Dicebot wrote:
Yes, something like separate partially static import type.
I doesn't need language support. Just have a single function, log,
which returns a struct. The struct have all the error, warning and
so on, functions.
--
/Jacob Carlborg
On 14/07/14 18:16, H. S. Teoh via Digitalmars-d wrote:
Mine is here:
http://wiki.dlang.org/User:Quickfur/DIP_scope
From the DIP:
The 'scope' keyword has been around for years, yet it is barely
implemented and it's unclear just what it's supposed to mean
I don't know if it's worth
On 15/07/14 01:48, H. S. Teoh via Digitalmars-d wrote:
Yes, but since the extent of this scope is unknown from inside the
function body, it doesn't easily lend itself nicely to check things like
this:
int* ptr;
void func(scope int* arg) {
ptr = arg; // should
On 14/07/14 23:26, Jonathan Marler wrote:
Ah I see now. It looks like AST macros are going to open up alot of new
paradigms, I'm excited to see how they progress and what they can do.
It doesn't get us all the way there in this example but its a very good
alternative without having to add
On 15/07/14 04:21, H. S. Teoh via Digitalmars-d wrote:
Not being usable in an IDE is a pretty big cost IMO. (Even though I
myself don't even use IDE's!) Maybe you might stand a chance of
convincing Walter to do it. Probably after the upcoming release, since
right now the focus is to get that
On 15/07/14 01:14, Domingo Alvarez Duarte wrote:
Hello !
I'm starting to look at the d compiler sources and I'm using netbeans to
navigate through the sources, netbeans is very good at showing
warnings/errors with it's own internal parser, but because all the c++
source files use .c as file
On 15/07/14 08:46, simendsjo wrote:
Isn't both 1 and 2 deprecated?
Depends on what you mean by deprecated. People are keep saying that
but it's not. Nothing, except for people saying that, indicates that. No
deprecation message, no warning, nothing about it in the documentation.
Even
On 15/07/14 14:47, Adam D. Ruppe wrote:
These are actually the same thing: if something is stack allocated, it
must not allow the reference to escape to remain memory safe... and if
the reference is not allowed to escape, stack allocating the object
becomes an obvious automatic optimization.
On 2014-07-15 16:58, H. S. Teoh via Digitalmars-d wrote:
But what if 'ptr' is declared in a private binary-only module, and only
the signature of 'func' is known? Then what should 'scope' mean to the
compiler when 'func' is being called from another module?
Hmm, I didn't think of that :(
--
On 16/07/14 11:56, Vic wrote:
Java is the devil I know.
But if D is not my first choice to port(from Java), than my second
choice is Qt.
There is DWT [1], which is a port of the Java library SWT.
[1] https://github.com/d-widget-toolkit/dwt
--
/Jacob Carlborg
On 2014-07-17 18:35, Kapps wrote:
Also, there used to be a built in syntax, 'scope foo = new Foo()' that
would allocate on the stack, but that's deprecated now (and seemed to
segfault when I tried it).
It is still available and no sign of deprecation (except everyone saying
that).
--
On 2014-07-17 20:54, Andrei Alexandrescu wrote:
I'm not an expert in videos but as I mentioned I've studied a few
options last year before deciding to use archive.org as our reference
upload site.
I got curious just now, so I just uploaded two screenshots:
http://i.imgur.com/x1bsTNf.jpg with
On 17/07/14 22:18, Dicebot wrote:
Discouraged and unmaintained is probably a better description.
How does it need maintaining?
--
/Jacob Carlborg
On 18/07/14 03:55, Israel Rodriguez wrote:
This man has it right. I dont think quality is a huge issue though
unless youre watching something that needs to be sensitive to the eye in
which case youtube will work just fine for these videos.
Youtube supports resolutions of 4k, I don't see the
On 2014-07-18 17:44, Andrei Alexandrescu wrote:
Somehow the same DConf videos are of better quality on archive.org than
on youtube.com. Could you explain that? -- Andrei
You're streaming and not downloading from Youtube. I always download
longer video clips from Youtube. I don't want any
On 2014-07-19 05:39, Andrei Alexandrescu wrote:
That's a good point, thanks. But I haven't seen complaints from people
about archive.org, though I did see before about ustream.tv. -- Andrei
archive.org is extremely slow for compared with youtube. We're talking
one _hour_ vs two minutes.
--
On 2014-07-19 00:39, Andrei Alexandrescu wrote:
Is there an easy way to download off of youtube one of DConf talks at
the same quality as the archive.org content? -- Andrei
Here's a couple of alternatives:
* youtube-dl - command line tool, requires Python. Just run the tool
with the URL as
On 2014-07-19 17:16, Jacob Carlborg wrote:
archive.org is extremely slow for compared with youtube. We're talking
one _hour_ vs two minutes.
*for me
--
/Jacob Carlborg
What's up with associative arrays, opCmp, opEquals and toHash in
2.066.0-b4. I'm trying to compile Tango with the latest beta and I'm
getting this error:
Error: AA key type TagIndex now requires equality rather than comparison
Four months ago opCmp was added to TagIndex to fix some compile
On 2014-07-21 14:49, bearophile wrote:
opEquals and opHash. But if your struct has only two ints as fields, it
should work even if you don't define both methods.
If the struct already has opCmp I need to defined opEquals and toHash?
--
/Jacob Carlborg
On 2014-07-21 20:17, H. S. Teoh via Digitalmars-d wrote:
I'm inclined to say, file a regression bug. If opCmp is defined but
opEquals isn't, the compiler should auto-generate opEquals (as
opCmp(...)==0). Requiring the user to implement a separate opEquals
when opCmp is already there is
On 22/07/14 08:25, Manu via Digitalmars-d wrote:
It seems __gshared constructors aren't working... although I thought
they did; I'm sure I've used them before in various occasions :/
What would that do? I didn't know that was possible to do.
--
/Jacob Carlborg
On 23/07/14 03:01, Mike wrote:
DMD redistributes some of them, but does Digital Mars have a unique
agreement with Microsoft?
I think they have an agreement to redistribute these libraries. Walter
knows the answer to this.
--
/Jacob Carlborg
On 24/07/14 02:41, Jonathan M Davis wrote:
That would incur a silent performance hit.
So does default initialized values, virtual by default, classes
allocated on the heap and other features of D. By default D chooses
safety and correctness. If the programmer needs more performance some
On 24/07/14 17:11, Manu via Digitalmars-d wrote:
I didn't specify, and I don't think this code requires that I do.
T will resolve this situation naturally.
Is it 'template T(X)'? Obviously the type.
Is it 'template T(alias X)'? this could be the type or the template, but
since the template is
On 22/07/14 11:43, ponce wrote:
NullLogger is there precisely because it's trivial and needed.
If it's so trivial then the users can implement that themselves. A
standard library isn't about implementing what's trivial, it's about
implementing what's most useful to most people.
--
/Jacob
On 25/07/14 06:50, Walter Bright wrote:
Consider also:
http://www.reddit.com/r/programming/comments/2bl51j/programming_in_d_a_great_online_book_for_learning/cj75gm9
The current scheme breaks existing code - code that was formerly correct
and working.
AAs don't make sense if the notion of ==
201 - 300 of 3698 matches
Mail list logo