Andrei Alexandrescu wrote:
MIURA Masahiro wrote:
Hi,
Being happy to see issue 3415 (broken JSON format) fixed,
I have written a utility to convert DMD2's JSON output
to Exuberent Ctags format. This enables you to tagjump in Vim
and other editors/IDEs. It's just 150+ lines, thanks to
bearophile wrote:
Lutger:
...
rdmd has the option --main, together with -unittest you can easily do
this.
This page doesn't list that option:
http://www.digitalmars.com/d/2.0/rdmd.html
rdmd prints:
--eval=code evaluate code +� la perl -e (multiple --eval allowed)
--loop
Walter Bright wrote:
bearophile wrote:
Walter Bright:
But why? Just use: foo(10);
I think you are missing something important here.
Static asserts (or other implicit errors) inside a template, etc, test
that some input types are correct, some template input values are in the
correct
Don wrote:
bearophile wrote:
dmd D 2.045 improves the built-in unit tests resuming their run when they
fail (it reports only the first failed assert for each unit test).
There are many features that today a professional unittest system is
expected to offer, I can write a long list. But in
bearophile wrote:
dmd D 2.045 improves the built-in unit tests resuming their run when they
fail (it reports only the first failed assert for each unit test).
There are many features that today a professional unittest system is
expected to offer, I can write a long list. But in the past I
Walter Bright wrote:
Ary Borenszweig wrote:
Then a long text below that, the links on the left are at the same level
as the title and the text. But the other links (wiki, search, etc.) are
above all of that, so I don't see them. And as far as I remember, other
people couldn't see them
Robert Clipsham wrote:
On 30/04/10 00:39, Jesse Phillips wrote:
I'm a little surprised I didn't see this announced here, at least I can't
find it.
GDB has had the patch accepted!
http://www.llucax.com.ar/blog/blog/post/06d99f3b
It has been more than accepted, it is now in the source
retard wrote:
Wed, 28 Apr 2010 16:44:07 +, BCS wrote:
Hello bearophile,
By the way, you can see an example of the expression problem here,
Could you elaborate on what exactly the expression problem is?
Learning the use of a search engine would help you greatly in your life:
Ezneh wrote:
Andrei Alexandrescu Wrote:
On 04/28/2010 12:50 PM, Ezneh wrote:
Andrei Alexandrescu Wrote:
I put a countdown on my website (http://erdani.com/) displaying the
days left to final bound dead-tree copies of TDPL. Also, the book
cover (front and back) is now available for
What do you think about expressing the loop invariant as as nested pure
function?
something like this:
body
{
Node* p = list_header; // pointer to the current Node
Node* pp; // pointer to the precedent Node
pure void checkInvariant(in Node* _pp,
in
bearophile wrote:
According to the paper from Bjarne Stroustrup:
http://www.research.att.com/~bs/multimethods.pdf
this is a possible syntax D3 can use for the double dispatch:
void foo(@virtual A a, @virtual B b) {}
Bye,
bearophile
I have studied this paper a bit once, it's good. It
Justin Johansson wrote:
KennyTM~ wrote:
On Apr 22, 10 14:52, Lutger wrote:
I don't think javascript is suited for this purpose, but perhaps
silverlight
/ moonlight is. A D compiler targetting the CoreCLR could be big,
depending
on how this platform takes off.
D.NET?
D.NET (D.CLR
I don't think javascript is suited for this purpose, but perhaps silverlight
/ moonlight is. A D compiler targetting the CoreCLR could be big, depending
on how this platform takes off.
BCS wrote:
Hello GG,
Thanks Adam D. Ruppe !
It's clear now !
Maybe the web site could have a section talking about license because
I know many people who don't use D and DMD because they are afraid
about the commercial license.
I think that's a fairly standard clause for just about
bearophile wrote:
I'm not currently asking to implement pattern matching in D3 (as present
for example in Scala), but it's positive to think how to solve similar
problems in D2, because even if pattern matching is not available in D2,
the problems it is asked to solve solve can be real.
Lutger wrote:
...
void main(string[] args)
{
int i = 12;
matcher(i,
[ aha: (string v) { writeln(I saw a string , v); } ],
[ 12 : (int i) { writeln(I saw an int , i); } ] );
string v = aha;
matcher(v,
[ aha : (string v) { writeln(I saw
Jacob Carlborg wrote:
On 3/31/10 03:53, Nick Sabalausky wrote:
Steven Schveighofferschvei...@yahoo.com wrote in message
news:op.vaefb7p3eav...@localhost.localdomain...
On Tue, 30 Mar 2010 16:56:32 -0400, Walter Bright
newshou...@digitalmars.com wrote:
BTW, type a file to a console
Matt wrote:
I shouldn't be using notepad, I should be using YOUR
editor which makes your faulty method work?
D does not support notepad.
Walter Bright wrote:
Lutger wrote:
Matt wrote:
I shouldn't be using notepad, I should be using YOUR
editor which makes your faulty method work?
D does not support notepad.
D doesn't care what text editor you use.
BTW, type a file to a console window. Tabs come out as 8 characters
Andrei Alexandrescu wrote:
On 03/28/2010 03:44 AM, Lutger wrote:
(...)
I like this idea of implementing a flag type and tried to work something
out. Instead of implementing the overloads, it is also possible to
generate an enum via CTFE inside a struct and forward with alias this,
what do
Lutger wrote:
...
struct Flags(string members, T = uint)
{
static assert( is(T : ulong), Wrong underlying type of Flags: must be
integral not ~ T.stringof );
mixin( genFlags(members) );
I screwed up of course, this must be:
mixin( genFlags(members, T.stringof) );
alias
Lutger wrote:
...
unittest
{
alias Flags!q{ do_nothing, walk_dog, cook_breakfast, deliver_newspaper,
visit_miss_kerbopple, morning_task = walk_dog | cook_breakfast,
wash_covers } Todo;
Todo list1 = Todo.do_nothing;
assert( list1 == 1 );
list1
bearophile wrote:
To invent a software you can first find the best syntax. This seems a nice
syntax, very similar to the enum one (that ubyte is optional):
flags ubyte Todo {
do_nothing,
walk_dog,
cook_breakfast,
deliver_newspaper,
visit_miss_kerbopple,
bearophile wrote:
Lutger:
alias Flags!q{ do_nothing,
walk_dog,
cook_breakfast,
deliver_newspaper,
visit_miss_kerbopple,
wash_covers } Todo;
That's better.
But you have missed the optional type :-)
Bye
Jesse Phillips wrote:
Walter Bright Wrote:
Jesse Phillips wrote:
I would like to announce DDebber.
http://dsource.org/projects/ddebber
Looks like we have an embarrassment of riches here. Jordi Sayol i Salom�
has sent me a shell script to do it, and Cristi has contributed a script
Jesse Phillips wrote:
Lutger wrote:
You could try getting LDC with Tango into debian, there are no license
problems with them.
My goal isn't exactly to get anything into the official repo. This is my
first time really doing packaging and I'd like to figure out what is
best for D
Thank you.
Under svn there is both the gpl and boost license files, and no indication
which is the right one. Could you remove gpl.txt to avoid confusion?
Walter Bright wrote:
BCS wrote:
The only case I can think of where putting a zip file in the middle of
that loop is even remotely reasonable would be for a remote build farm.
The other use cases for build-from-zip are building someone else's code
where you aren't editing the parts in the zip
Ellery Newcomer wrote:
Anyone want to play with dmdz, here it is:
http://personal.utulsa.edu/~ellery-newcomer/dmdz.zip
Haven't tested it much, especially on windows. Don't know what it will
do with multiple zip files. piecemeal flag doesn't know how to stop when
you tell it to. dmd's
Bernard Helyer wrote:
On 12/03/10 18:09, Nick Sabalausky wrote:
Ellery Newcomerellery-newco...@utulsa.edu wrote in message
news:hnc4o3$2lm...@digitalmars.com...
What I really want is an archive program that automatically makes a
subfolder by default *but* detects if the top level inside
Michal Minich wrote:
On Tue, 09 Mar 2010 10:23:07 -0500, Steven Schveighoffer wrote:
I want to focus more on the fact that you are declaring the data after
the slice as being no longer used.
kind of assumeUnique ...
assumeNoArrayReference ?
I like that. Or assumeNoMemoryAliasing. It
Thanks! A pleasant surprise to see interface contracts.
Michael Rynn wrote:
That IS what Walter thinks, actually. It's being moved to libraries
(which is why there have been some nasty AA regressions in the past few
compiler releases :-( ).
Sounds good. So the source is in druntime?
Does that mean I can find out how to implement opIn ?.
I
retard wrote:
Sun, 07 Mar 2010 05:05:03 +, BCS wrote:
Hello Jane,
Is D a cult?
No, not yet. Walter hasn't figured out how to brain wash people over a
newsgroup yet. However I think Andrei's working on it and Don should
have a patch in time for TDPL going out ;b
FWIW, I think
retard wrote:
Sun, 07 Mar 2010 14:12:14 +0100, Lutger wrote:
retard wrote:
Sun, 07 Mar 2010 05:05:03 +, BCS wrote:
Hello Jane,
Is D a cult?
No, not yet. Walter hasn't figured out how to brain wash people over a
newsgroup yet. However I think Andrei's working on it and Don
Nick Sabalausky wrote:
...
I've always felt that the ability to access static members through an
instance was just a bad idea in general, and this seems to add another
reason not to allow it.
I agree, some compilers issue warnings in this case.
Theoretically exceptions are situations you expect can happen, even though
the code is bug free, while assertions always indicate a bug.
I think the main implication of this is that assertions should behave
differently. They should halt the program at once so the developer's
attention is
bearophile wrote:
This can be done just keeping asserts in the precondition, and putting the
exceptions in the body (if you are a really tidy person you can even
disable the exceptions in not release built). But in practice I think the
good enough thing to do is to be sure essential
bearophile wrote:
I think this comment contains a grain of truth: languages that start
simple can gain an user base, and then they can slowly grow more complex:
http://www.reddit.com/r/programming/comments/b74jv/scala_books_in_general_are_just_not_selling_well/
I think you need to
Just practically speaking, not being able to call any non-pure functions is
real pain. You can't even call to!string for example.
I like your original suggestion, thanks for putting it it in bugzilla. I
hope it will considered some day.
By the way, I just discovered contract programming is
Don wrote:
...
I genuinely thought @pure, @nothrow was a no-brainer.
I really thought the explanation that we made all attibutes use the @
form, except those where it was prevented by historical precedent was
quite defensible.
But I was very, very wrong. Looks like the community is
Jonathan M Davis wrote:
...
Generally, I speaking, I think that having functions which override
functions from a base class and throw if they're used is a bad design. It
may be that it makes perfect sense in some contexts, but generally, I'd
consider it a very bad idea. Personally, I hate it
Andrei Alexandrescu wrote:
Jonathan M Davis wrote:
Andrei Alexandrescu wrote:
I also defined recently:
===
/**
If $(D startsWith(r1, r2)), consume the corresponding elements off $(D
r1) and return $(D true). Otherwise, leave $(D r1) unchanged and
return $(D false).
Justin Johansson wrote:
Eldar Insafutdinov wrote:
Steve Teale Wrote:
On Fri, 19 Feb 2010 16:41:20 -0500, g wrote:
I tried to get some attention for this problem again a couple of weeks
ago (see the special treat thread), and everyone who replied said
yes, we really need this, but Walter
If you manage to find the proper 32 bit libraries, there is a configuration
file for ld where you can specify the search paths, should be:
/etc/ld.so.conf
The 64-bit distro's I have used fail to add the 32-bit lib paths to this
file, even if you install the right packages.
Walter Bright wrote:
Steven Schveighoffer wrote:
For example, there is no possible way a person unfamiliar with computers
That's a valid argument if you're writing a spreadsheet program. But
programmers should be familiar with computers, and most definitely
should be familiar with 2's
retard wrote:
Mon, 15 Feb 2010 01:08:38 -0500, Nick Sabalausky wrote:
BCS n...@anon.com wrote in message
news:a6268ff103d38cc7ba48d6fa...@news.digitalmars.com...
Hello Nick,
I *definitely* want that for string mixins of both the
template-generated and ctfe-generated varieties.
Why? I
On 02/06/2010 05:55 AM, Joel Anderson wrote:
On 2/4/2010 4:41 PM, Trip Volpe wrote:
Joel Anderson Wrote:
That's one of the reasons I've wished D had a nicer syntax for the
string mixin format. This one kinda scares people away :p
What kind of syntax do you have in mind?
Making mixins less
On 02/06/2010 01:58 PM, Yigal Chripun wrote:
...
Also, I've found a simple NNTP server written in python that has modular
back-end support so it can be set-up to provide a bi-directional NNTP
interface for various web forums.
What is the name / link?
Thanks
On 02/03/2010 02:42 AM, Walter Bright wrote:
Yigal Chripun wrote:
I've thought about building such a system for these forums many times.
Registration would not be required to post, but registering would enable
features like voting on posts, establishing a profile, preferences, etc.
That
Does anybody get this with 2.040? I couldn't find a bug report about it,
so maybe it is due to my setup.
// in file test.d:
assert(false);
output: core.exception.asserter...@l(5): Assertion failure
^ not the right file
// in file test.d:
assert(false, ok);
On 01/31/2010 09:39 PM, Trip Volpe wrote:
I recently began porting an existing C++ project of mine (a
compiler/interpreter for a dynamic language) to D. In the process I found that
the built-in unit testing support, while an awesome concept, was a little bit
sparse. In particular, assert() is
On 01/31/2010 10:04 PM, Nick Sabalausky wrote:
Lutgerlutger.blijdest...@gmail.com wrote in message
news:hk4r35$1hp...@digitalmars.com...
You can use line and file info with default arguments, this works (special
case).
That must be a D2 thing, because I know it doesn't work in D1.
This release makes me smile. Thank you so much Walter, and everybody who
contributed too.
On 01/29/2010 07:01 PM, Andrei Alexandrescu wrote:
...
How about @property? When you add a @property to a function it can be
called as an assignment. @property does not touch the calling of
no-argument functions.
Are there any problems with that?
Such a @property is just for the writing
On 01/29/2010 06:36 PM, Andrei Alexandrescu wrote:
...
One problem I foresee is the growth of std.algorithm. It already has
many things in it, and I fear that some user who just wants to trim a
string may find it intimidating to browse through all that
documentation. I wonder how we could break
On 01/29/2010 09:13 PM, Lutger wrote:
http://www.naturaldocs.org/documenting/reference.html#Example_Class
sorry, wrong anchor:
http://www.naturaldocs.org/documenting/reference.html#Summaries
On 01/29/2010 09:18 PM, Andrei Alexandrescu wrote:
Lutger wrote:
On 01/29/2010 06:36 PM, Andrei Alexandrescu wrote:
...
One problem I foresee is the growth of std.algorithm. It already has
many things in it, and I fear that some user who just wants to trim a
string may find it intimidating
On 01/29/2010 09:43 PM, bearophile wrote:
Andrei Alexandrescu:
I think the idea of tags is awesome, particularly because it doesn't
require one to divide items in disjoint sets. I'll think some more of it.
A hierarchical D/Python-like module system isn't the only way to organize
blocks of
On 01/28/2010 11:05 PM, Andrei Alexandrescu wrote:
Michiel Helvensteijn wrote:
Andrei Alexandrescu wrote:
foreach (line; stdin.byLine()) { ... }
vs.
foreach (line; stdin.byLine) { ... }
How do I choose?
byLine is a property. It is fetching a range on stdin.
-Steve
Damn. I was sure the
On 01/28/2010 11:28 PM, Andrei Alexandrescu wrote:
Lutger wrote:
On 01/28/2010 11:05 PM, Andrei Alexandrescu wrote:
Michiel Helvensteijn wrote:
Andrei Alexandrescu wrote:
foreach (line; stdin.byLine()) { ... }
vs.
foreach (line; stdin.byLine) { ... }
How do I choose?
byLine
On 01/21/2010 09:28 AM, Chris Nicholson-Sauls wrote:
Lars T. Kyllingstad wrote:
Chris Nicholson-Sauls wrote:
(Apologies ahead of time if I've overlooked something.)
How possible could it be to have opDispatch or an equivalent feature
(opStaticDispatch?) available for static forwarding?
On 01/19/2010 09:32 PM, Matthias Pleh wrote:
Stephan schrieb:
I dunno if anyone knew this before but i wanted to give my kudos to a
guy that did a lot for the D community by developing the still best
debugger for the D Programming Language Ddbg
(http://ddbg.mainia.de/releases.html)
The
On 01/19/2010 08:11 AM, bearophile wrote:
Another of those billion dollar mistakes D2 will not be able to avoid!
http://www.microsoft.com/technet/security/advisory/979352.mspx
Our investigation so far has shown that Internet Explorer 5.01 Service Pack 4 on
Microsoft Windows 2000 Service Pack
On 01/18/2010 03:45 AM, Jerry Quinn wrote:
[also posted to D.gnu]
Hi, folks,
I'm interested in creating a D front end for GCC that would be part of the GCC
codebase. My feeling is that a GDC that is part of GCC distributions will
likely have more life than one that must be updated whenever
On 01/18/2010 11:31 PM, Walter Bright wrote:
Jérôme M. Berger wrote:
Embedded x86 is an oxymoron. Yes, I know, it exists (and btw, 8
years ago they were still selling 486s as embedded processors) but
mostly it doesn't need any special support (except possibly on the
binary size front and even
On 01/17/2010 11:53 AM, bearophile wrote:
This discussion clearly shows that the current semantics of the auto is not
clean enough and it needs to be improved.
To improve it D needs to adopt the strategy of using all attributes in a more tidy and
semantically clean way, as Java does. Java
On 01/17/2010 04:35 PM, bearophile wrote:
Lutger:
huh, you want to ditch type inference?
Sorry for my last answer.
I'd like to keep the type inference, but I'd like the const/immutable/etc
annotations to become orthogonal to the type, that can be given or inferred
with auto.
(And I'd like
On 01/16/2010 02:01 PM, aarti_pl wrote:
W dniu 2010-01-16 13:26, Simen kjaeraas pisze:
aarti_pl aa...@interia.pl wrote:
class Test {
string t1 = test; //Ok!
char[] t2 = test.dup; //Compile error
}
void main(char[][] args) {
}
Error:
hello.d(3): Error: cannot evaluate _adDupT((
On 01/16/2010 04:18 PM, aarti_pl wrote:
W dniu 2010-01-16 15:30, Lutger pisze:
Perhaps this is or should be a bug. You can override dup to work in ctfe:
char[] dup(string str)
{
return str.dup;
}
class Test {
string t1 = test; //Ok!
char[] t2 = test.dup; //Compile error
char[] t3 = test.dup
On 01/14/2010 11:38 PM, Simen kjaeraas wrote:
Is there a way to get a list of overloads for a function name in D?
For member functions, there's __traits( getVirtualFunctions, ... ), but
that don't work for free functions.
I'm afraid there is no way. See also this blog:
On 01/14/2010 03:19 PM, retard wrote:
To conclude this discussion, it seems that executable size could be
reduced dramatically. Unfortunately the compiler fails to use the
opportunity in almost all cases.
A typical program would be 50% to 99.999% smaller if the libraries
(including stdlib) were
On 01/13/2010 05:49 PM, Justin Johansson wrote:
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss D's auto
keyword.
I am wondering, though, from an OO/polymorphism perspective, and UML and sound
software engineering perspective as well,
On 01/13/2010 08:46 PM, retard wrote:
Wed, 13 Jan 2010 20:22:02 +0100, Lutger wrote:
On 01/13/2010 05:49 PM, Justin Johansson wrote:
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss
D's auto keyword.
I am wondering, though, from an OO
Thanks!
On 01/11/2010 11:33 AM, bearophile wrote:
grauzone:
Why are you making such proposals, when one of the core developers even
thought about removing normal scope?
And by the way, in the Python community one of the purposes of PEPs is to act
as an archive of refused proposals, so people can
On 01/12/2010 12:14 PM, retard wrote:
Tue, 12 Jan 2010 05:34:49 -0500, Nick Sabalausky wrote:
retardr...@tard.com.invalid wrote in message
news:hihgbe$qt...@digitalmars.com...
Mon, 11 Jan 2010 19:24:06 -0800, Walter Bright wrote:
dsimcha wrote:
Vote++. I'm convinced that there's just a
On 01/12/2010 11:40 PM, Walter Bright wrote:
Steven Schveighoffer wrote:
I hope this is not a permanent situation. Shared libraries (not
necessarily DLLs) help reduce the memory usage of all the programs on
the system that use the same libraries, and the footprint of the
binaries.
That would
On 01/13/2010 12:29 AM, Adam D. Ruppe wrote:
On Tue, Jan 12, 2010 at 11:12:33PM +, retard wrote:
If they all used static linking, I'm afraid I would have to
buy another 32 GB ssd disk only for the binaries.
Yes, for large numbers of application, shared libraries save a lot of space.
On 01/09/2010 04:36 PM, Ph wrote:
Why a generated file is so huge?
Size of binraries are big because of typeinfo, standard library and
bloat from templates. C++ binaries are probably also much bigger when
the std lib is compiled statically and also bloat up pretty fast when
you use
On 01/07/2010 10:50 PM, Brien wrote:
Don Wrote:
Ok, that's good to know. I assumed because D billed itself as a systems
programming language that performance would be paramount.
He's talking about his converter program, not about D!
Oops, sorry about the misinterpretation.
I'm sure I'm
On 01/07/2010 11:59 PM, Lutger wrote:
On 01/07/2010 10:50 PM, Brien wrote:
Don Wrote:
Ok, that's good to know. I assumed because D billed itself as a
systems programming language that performance would be paramount.
He's talking about his converter program, not about D!
Oops, sorry about
Thanks a lot everybody. Also special thanks to Don for his increased
involvement and stepping up to help with some serious bugfixing!
It feels like D2 is becoming more solid and usable every release in
spite of major features still being added.
Happy new year! It will be an exciting one for
On 01/03/2010 04:31 AM, Strt wrote:
How can I generate some sort of call diagram from my D code?
you can compile with (dmd) -profile and run the executable. This
produces a file called trace.log which contains timings for each
function and a call graph. It doesn't produce a diagram and has
On 12/25/2009 03:19 PM, Eldar Insafutdinov wrote:
Currently we have ParameterTypeTuple for extracting type list of function
arguments. This is not enough. There should be a clean way to extract storage
classes and default arguments if there are any. Any thoughts?
In addition we need to be
Don wrote:
Lutger wrote:
...
http://en.wikipedia.org/wiki/Duck_typing#Structural_type_systems
That Wikipedia page doesn't any make sense to me. Is that *really* what
duck typing is? If so, it's a complete misnomer. Because it's totally
different to if it looks like a duck, quacks like
retard wrote:
snip
Thanks for links, that should help.
retard wrote:
Mon, 21 Dec 2009 18:54:19 +0100, Daniel de Kok wrote:
On 2009-12-19 21:04:32 +0100, Andrei Alexandrescu
seewebsiteforem...@erdani.org said:
This code is shown for its elegance rather than its efficiency. Using
++ in this way is not generally considered good programming
downs wrote:
Or are there any bugs/optimization opportunities I'm missing?
void qsort(T)(T[] array) {
if (array.length 2) return;
static int i;
auto pivot = array[i++%$];
// from is base-0, to is base-1.
int from = 0, to = array.length;
while (from != to) {
if
downs wrote:
Lutger wrote:
downs wrote:
Or are there any bugs/optimization opportunities I'm missing?
void qsort(T)(T[] array) {
if (array.length 2) return;
static int i;
auto pivot = array[i++%$];
// from is base-0, to is base-1.
int from = 0, to = array.length;
while
Nick Sabalausky wrote:
Lutger lutger.blijdest...@gmail.com wrote in message
news:hgl440$tl...@digitalmars.com...
Yigal Chripun wrote:
The .Net implementation isn't perfect of course and has a few issues
that should be resolved, one of these is the problem with using
operators. requiring
Yigal Chripun wrote:
On 18/12/2009 02:49, Tim Matthews wrote:
In a reddit reply: The concept of templates in D is exactly the same as
in C++. There are minor technical differences, syntactic differences,
but it is essentially the same thing. I think that's understandable
since Digital Mars
Chad J wrote:
dsimcha wrote:
... The other option is to make
sure everything is loosely coupled to the GUI lib so it can be easily
swapped for
another one. The downside is that this has some tradeoffs in terms of
simplicity and probably performance that I don't think I want to make and
Lutger wrote:
Chad J wrote:
dsimcha wrote:
... The other option is to make
sure everything is loosely coupled to the GUI lib so it can be easily
swapped for
another one. The downside is that this has some tradeoffs in terms of
simplicity and probably performance that I don't think I
What are you planning to with multithreading?
With the current type system, is it possible to statically detect inside the
template if the refcount is used in shared scenario's, and base the
implementation on that information? That would be ideal, if it is indeed
possible.
std.stdio.File is
Denis Koroskin wrote:
On Mon, 14 Dec 2009 11:04:15 +0300, Lutger lutger.blijdest...@gmail.com
wrote:
What are you planning to with multithreading?
With the current type system, is it possible to statically detect inside
the
template if the refcount is used in shared scenario's, and base
Thanks, I filed this bug for the .idup issue:
http://d.puremagic.com/issues/show_bug.cgi?id=3615
dsimcha wrote:
...
Does this sound worthwhile?
Yes, we need this.
i have two question related to ctfe:
1) returning .idup on local static arrays fail but I don't understand why
that should be:
string foo()
{
char[1] d;
d[0] = 'd';
return d.idup;
}
pragma(msg, foo()); // Error: cannot evaluate foo() at compile time
.idup is not mentioned in the
retard wrote:
Sat, 12 Dec 2009 17:44:34 +, dsimcha wrote:
== Quote from retard (r...@tard.com.invalid)'s article
Sat, 12 Dec 2009 11:53:50 -0500, Andrei Alexandrescu wrote:
Eldar Insafutdinov wrote:
Right now we are working on a next QtD version. We dropped support
for D1, it is D2
301 - 400 of 641 matches
Mail list logo