Daniel Green Wrote:
D2 has been released for testing. Now in a zip file.
https://bitbucket.org/goshawk/gdc/downloads
gcc-4.5.1-tdm-1-gdc-r499-20110322.zip
From here on out, D1 and D2 will be combined into a single release.
Since D1 appears more stable it is the default. Use -v2 to
Daniel Green Wrote:
D2 has been released for testing. Now in a zip file.
https://bitbucket.org/goshawk/gdc/downloads
gcc-4.5.1-tdm-1-gdc-r499-20110322.zip
From here on out, D1 and D2 will be combined into a single release.
Since D1 appears more stable it is the default. Use -v2 to
On 3/24/2011 6:53 PM, Kagamin wrote:
Is the AIX problem valid for windows too?
What is the AIX problem?
Daniel Green Wrote:
On 3/24/2011 6:53 PM, Kagamin wrote:
Is the AIX problem valid for windows too?
What is the AIX problem?
https://bitbucket.org/goshawk/gdc/wiki/UserDocumentation#!known-issues
writeln(hello world)
compiles to 3MB exe which is approx 1/3 of libgphobos2.
object file is just
If you're on an Windows XP box and live in the continental U.S., I'd very much
appreciate if you could run this program and post the output:
import std.datetime;
import std.stdio;
void main()
{
writeln(SysTime(Date(1999, 3, 1)));
writeln(SysTime(Date(1999, 3, 8)));
On 3/23/2011 9:12 AM, Bruno Medeiros wrote:
Now that is an argument. Although I still don't agree: it really
shouldn't take that long to setup an IDE (if Netbeans and/or its PHP
plugin are crappy, don't use that to blame all IDEs :P ). But in any
case this is kinda besides the point, because
On 24/03/11 15:19, Jonathan M Davis wrote:
Regarding unit tests - I have never been a fan of putting unit test code
into the modules being tested because:
* Doing so introduces stacks of unnecessary imports, and bloats the
module. * Executing the unittests happens during execution rather
Am 24.03.2011 05:32, schrieb dsimcha:
In addition to improving the documentation, I added
Task.executeInNewThread() to allow Task to be useful without a TaskPool.
(Should this have a less verbose name?)
The threading system I designed for the company I work for uses priority
per task to
Interestingly, you don't even have to remove body from the syntax to
remove it as a keyword, as it's only used in this context (that I know
of), where no other symbols make sense.
I'm all for this change.
Since there are already similar differences between 1.0 and 2.0 (e.g.
invariant()) and projects can be fixed by a more or less simple search
and replace, this would be a cheap way to clean up a keyword that can
truly get in your way (in contrast to some others that
dsimcha:
and apologize for getting defensive at times.
It happens to mammals, don't worry.
The new docs are at
http://cis.jhu.edu/~dsimcha/d/phobos/std_parallelism.html .
real getTerm(int i) {
immutable x = ( i - 0.5 ) * delta;
return delta / ( 1.0 + x * x ) ;
}
Hm depending on the way the pool is used, it might be a better default
to have the number of threads equal the number of cpu cores. In my
experience the control thread is mostly either waiting for tasks or
processing messages and blocking in between so it rarely uses a full
core, wasting the
California, Windows XP via Virtual PC:
1999-Mar-01 00:00:00
1999-Mar-08 00:00:00
1999-Mar-14 00:00:00
1999-Mar-14 01:00:00
1999-Mar-14 01:00:00
1999-Mar-14 02:00:00
1999-Mar-14 23:00:00
1999-Mar-21 23:00:00
1999-Mar-28 23:00:00
1999-Mar-31 23:00:00
1999-Apr-02 23:00:00
1999-Apr-04 00:00:00
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of keywords, reserved words can't be used as
identifiers, which can be annoying. body in particular is a common
noun that programmers would gladly use as a variable name in physics
simulation, astronomy, mechanics,
On 2011-03-23 18:09, Jonathan M Davis wrote:
On 2011-03-22 23:21, dsimcha wrote:
On 3/22/2011 6:04 PM, Jacob Carlborg wrote:
I've now finished the port of Dominic Sayers' PHP is_email function
(http://www.dominicsayers.com/isemail) and sending it for review.
A few comments:
* Due to
On 2011-03-23 20:29, Jonas Drewsen wrote:
On 23/03/11 15.07, Jacob Carlborg wrote:
On 2011-03-23 00:41, Jonas Drewsen wrote:
Hi,
It seems that every now and then a discussion about build tools or D
package management pops up in this group. Many people on this list have
a huge amount of
On 2011-03-23 22:20, Dmitry Olshansky wrote:
On 23.03.2011 1:04, Jacob Carlborg wrote:
I've now finished the port of Dominic Sayers' PHP is_email function
(http://www.dominicsayers.com/isemail) and sending it for review.
A few comments:
* Due to limitations in std.regex some unit tests fail
Am 24.03.2011 07:36, schrieb Bekenn:
On 3/23/2011 9:12 AM, Bruno Medeiros wrote:
Now that is an argument. Although I still don't agree: it really
shouldn't take that long to setup an IDE (if Netbeans and/or its PHP
plugin are crappy, don't use that to blame all IDEs :P ). But in any
case this
On 2011-03-24 05:30, Andrei Alexandrescu wrote:
On 3/23/11 11:42 AM, Luca Boasso wrote:
Sorry for the late reply,
even tough I'm not an ANTLR expert, given my previous experience with
the tool
and having read most of the official book, I could help more on this GSOC
idea.
I have looked at
As Phobos develops more, there are some commonly used Phobos functions that
aren't pure yet:
import std.algorithm, std.typecons, std.conv, std.array, std.range;
pure auto foo(int[] a) {
sort(a);
auto a2 = array(iota(a.length));
return tuple(text(a), a2);
}
void main() {}
But a
import std.stdio;
void Foo(T:T*)(T arg) if(!is(T==int)) {
writeln(arg of Foo:, arg, typeid(T));
}
void Foo(T:T*)(T arg) if(is(T==int)) {
writeln(int Foo!);
}
void main() {
Foo!(long*)(54);
}
So how do you solve the problem?
-
This is a good example of why it's difficult to decide what user input
is. One could consider that the 'user' in this case is the developer
using the library, but I don't think that's the right choice.
I'd say it's a bug, this is clearly a
Morlan:
...
This compiles, 54 is an int:
import std.stdio;
void Foo(T: T*)(T arg) if(!is(T == int)) {
writeln(Arg of Foo: , arg, , typeid(T));
}
void Foo(T: T*)(T arg) if(is(T == int)) {
writeln(int Foo!);
}
void main() {
Foo!(long*)(54L);
}
Generally for questions like this,
I did not ask what to do to compile it. I knew that 54L would do. The problem is
that in the example I explicitely specify the template parameter as long* so
there
is no reason for the compiler to try and guess T from the type of the function
argument. There is something wrong here.
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of keywords, reserved words can't be used as
identifiers, which can be annoying. body in particular is a common
noun that programmers would gladly use as a variable
Am 24.03.2011 11:49, schrieb Morlan:
I did not ask what to do to compile it. I knew that 54L would do. The problem is
that in the example I explicitely specify the template parameter as long* so
there
is no reason for the compiler to try and guess T from the type of the function
argument. There
I have discussed this is little problem about three years ago; in the meantime
the situation is changed (rdmd has appeared, DMD has grown the -deps switch,
etc).
I have a little module named modu:
module modu;
import std.stdio;
int foo() {
return 0;
}
int main() {
writeln(modu.main);
sclytrack:
Copied the following line from the Vala (=mostly reference counted language)
web page.
It is possible to use a reserved keyword as identifier name by prefixing it
with
the @ character. This character is not part of the name. For example, you can
name
a method foreach by
The program below compiles. Clearly the if constraints in my original example
are causing trouble. It seems like a bug to me.
import std.stdio;
void Foo(T:T*)(T arg) {
writeln(arg of Foo:, arg, typeid(T));
}
void main() {
Foo!(long*)(54);
}
Morlan:
I did not ask what to do to compile it. I knew that 54L would do. The problem
is
that in the example I explicitely specify the template parameter as long* so
there
is no reason for the compiler to try and guess T from the type of the function
argument. There is something wrong
On 03/24/2011 07:44 AM, Jonathan M Davis wrote:
Personally, I find the unit tests to be _way_ more maintainable when they're
right next to the code. I _really_ like that aspect of how unit tests are done
in D. However, it does mean that you have to dig through more code to get at
the actual
On 03/24/2011 05:32 AM, dsimcha wrote:
One thing Andrei mentioned that I'm really not sure about is what to do with
TaskPool.join(). My example for it is still terrible, because I think it's an
evolutionary artifact. It was useful in earlier designs that were never
released and didn't have
On 2011-03-24 03:00:01 -0400, Sönke Ludwig
lud...@informatik.uni-luebeck.de said:
Am 24.03.2011 05:32, schrieb dsimcha:
In addition to improving the documentation, I added
Task.executeInNewThread() to allow Task to be useful without a TaskPool.
(Should this have a less verbose name?)
The
On 2011-03-24 03:29:52 -0400, Sönke Ludwig
lud...@informatik.uni-luebeck.de said:
Hm depending on the way the pool is used, it might be a better default
to have the number of threads equal the number of cpu cores. In my
experience the control thread is mostly either waiting for tasks or
On 03/24/2011 05:32 AM, dsimcha wrote:
[...]
The new docs are at http://cis.jhu.edu/~dsimcha/d/phobos/std_parallelism.html .
About the doc: very good. I could understand most of it, while knowing nearly
nothing about parallelism prior to reading.
2 details:
* highlight key words only on
On 03/24/2011 05:30 AM, Andrei Alexandrescu wrote:
On 3/23/11 11:42 AM, Luca Boasso wrote:
Sorry for the late reply,
even tough I'm not an ANTLR expert, given my previous experience with the tool
and having read most of the official book, I could help more on this GSOC
idea.
I have looked at
On 03/24/2011 10:48 AM, Jacob Carlborg wrote:
On 2011-03-24 05:30, Andrei Alexandrescu wrote:
On 3/23/11 11:42 AM, Luca Boasso wrote:
Sorry for the late reply,
even tough I'm not an ANTLR expert, given my previous experience with
the tool
and having read most of the official book, I could help
The library refernce has the following text concerning the is expression:
5. is ( Type Identifier : TypeSpecialization )
The condition is satisfied if Type is the same as TypeSpecialization, or if
Type is a class and TypeSpecialization is a base class or base interface of
it. The Identifier is
On 03/24/2011 12:07 PM, bearophile wrote:
I have discussed this is little problem about three years ago; in the meantime
the situation is changed (rdmd has appeared, DMD has grown the -deps switch,
etc).
I have a little module named modu:
module modu;
import std.stdio;
int foo() {
On 3/24/2011 3:23 AM, bearophile wrote:
dsimcha:
and apologize for getting defensive at times.
It happens to mammals, don't worry.
The new docs are at
http://cis.jhu.edu/~dsimcha/d/phobos/std_parallelism.html .
real getTerm(int i) {
immutable x = ( i - 0.5 ) * delta;
On 3/24/2011 3:00 AM, Sönke Ludwig wrote:
Am 24.03.2011 05:32, schrieb dsimcha:
In addition to improving the documentation, I added
Task.executeInNewThread() to allow Task to be useful without a TaskPool.
(Should this have a less verbose name?)
The threading system I designed for the company
On 3/24/2011 3:29 AM, Sönke Ludwig wrote:
Hm depending on the way the pool is used, it might be a better default
to have the number of threads equal the number of cpu cores. In my
experience the control thread is mostly either waiting for tasks or
processing messages and blocking in between so
On Mar 24, 11 19:00, sclytrack wrote:
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of keywords, reserved words can't be used as
identifiers, which can be annoying. body in particular is a common
noun that
On 3/24/2011 8:35 AM, spir wrote:
On 03/24/2011 05:32 AM, dsimcha wrote:
[...]
The new docs are at
http://cis.jhu.edu/~dsimcha/d/phobos/std_parallelism.html .
About the doc: very good. I could understand most of it, while knowing
nearly nothing about parallelism prior to reading.
2 details:
On 3/24/2011 8:03 AM, Michel Fortin wrote:
On 2011-03-24 03:29:52 -0400, Sönke Ludwig
lud...@informatik.uni-luebeck.de said:
Hm depending on the way the pool is used, it might be a better default
to have the number of threads equal the number of cpu cores. In my
experience the control thread
bearophile Wrote:
I put in their main() some demo code that shows what this module does (and a
main is useful to run unittests too, rdmd has the --main switch for this).
Most of my Python modules have such demo main code, that runs only if you run
them as main modules.
unittests should
On 2011-03-24 14:05, spir wrote:
On 03/24/2011 12:07 PM, bearophile wrote:
I have discussed this is little problem about three years ago; in the
meantime the situation is changed (rdmd has appeared, DMD has grown
the -deps switch, etc).
I have a little module named modu:
module modu;
import
On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote:
On Mar 24, 11 19:00, sclytrack wrote:
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of keywords, reserved words can't be used
as identifiers, which can be
On 24/03/2011 06:36, Bekenn wrote:
On 3/23/2011 9:12 AM, Bruno Medeiros wrote:
Now that is an argument. Although I still don't agree: it really
shouldn't take that long to setup an IDE (if Netbeans and/or its PHP
plugin are crappy, don't use that to blame all IDEs :P ). But in any
case this is
On 2011-03-24 09:46:01 -0400, dsimcha dsim...@yahoo.com said:
Please review the changes carefully, then, because this is a use case I
know next to nothing about and didn't design for.
Well, it's practically the same thing except you never want to execute
a task in the main thread, because
On 3/24/2011 10:34 AM, Michel Fortin wrote:
One thing I'd want to be sure however is that you can use a parallel
foreach from within a task. So if you have one or two tasks that could
benefit from data parallelism it won't bring the whole system down. From
the API I don't think it'll be a
On 2011-03-24 10:43:08 -0400, dsimcha dsim...@yahoo.com said:
Sounds like a good plan. In general, I've tried to keep the design of
std.parallelism simple but composable. I have no intention of
re-implementing any kind of message system when std.concurrency already
does this well. If this
piotrek wrote:
On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote:
On Mar 24, 11 19:00, sclytrack wrote:
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of keywords, reserved words can't be used
as identifiers,
On 24/03/2011 04:30, Andrei Alexandrescu wrote:
On 3/23/11 11:42 AM, Luca Boasso wrote:
Sorry for the late reply,
even tough I'm not an ANTLR expert, given my previous experience with
the tool
and having read most of the official book, I could help more on this GSOC
idea.
I have looked at
http://www.gnu.org/philosophy/free-doc.html
I think this applies directly to D2.
Note: this post is no offence to Andrei's great work. Just a report we /also/
need a free/copyleft D2 manual; or that TDPL's content becomes free in a short
while. Even more since TDPL was kind of a premature
So write some documentation then. We don't need any more philosophical
topics on what should/should not be done.
spir wrote:
http://www.gnu.org/philosophy/free-doc.html
I think this applies directly to D2.
Note: this post is no offence to Andrei's great work. Just a report we
/also/ need a free/copyleft D2 manual; or that TDPL's content becomes
free in a short while. Even more since TDPL was kind of a
On 3/24/2011 11:00 AM, Michel Fortin wrote:
What it adds is a task pool, where you have a fixed number of threads
for an unlimited number of tasks. Spawning 10,000 threads because you
have 10,000 parallelizable tasks generally isn't a good idea.
That said, perhaps std.concurrency's spawn
So how do you solve the problem?
-
This is a good example of why it's difficult to decide what user
input is. One could consider that the 'user' in this case is the
developer using the library, but I don't think that's the right
choice.
I'd say it's a bug, this is
Am 24.03.2011 16:22, schrieb Don:
spir wrote:
http://www.gnu.org/philosophy/free-doc.html
I think this applies directly to D2.
Note: this post is no offence to Andrei's great work. Just a report we
/also/ need a free/copyleft D2 manual; or that TDPL's content becomes
free in a short while.
On Thu, 24 Mar 2011 17:22:10 +0200, Don nos...@nospam.com wrote:
I would say that what we really need is tutorials, rather than a
refernce work. Most urgently we need to make sure that the existing
tutorials that contain errors or refer to obsolete/removed features, get
pulled down.
== Repost the article of Jens Mueller (jens.k.muel...@gmx.de)
== Posted at 2011/03/22 05:48 to digitalmars.D
%u Ishan Thilina wrote:
Well, The biggest question in my mind is that how many container types
that I should implement?
Sorry to answer with a question: In which are you interested?
dsimcha:
I tried to keep it as consistent as possible with std.algorithm.
OK. Then the question is why std.algorithm uses normal strings instead of q{}
ones.
And regarding consistency with std.algorithm, a more important factor is that
std.algorithm.map is lazy, while you have a eager map,
On Thu, 24 Mar 2011 16:04:25 +0100, Don wrote:
piotrek wrote:
On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote:
On Mar 24, 11 19:00, sclytrack wrote:
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of
Bruno Medeiros:
I think that the concession that pure will be allowed to allocate memory
does inescapably remove some of the guarantees that pure functions offer
(like that one that the return value depends only on the arguments).
One possible fix to this would be to say that the allocated
spir:
Very annoying esp. during development since running unittests on a module, or
set of modules, requires a main() func.
This is not so bad, because rdmd has a --main switch.
* the linker automatically adds an empty main() to the first module if needed
The linker probably has zero
On Mar 24, 11 22:25, piotrek wrote:
On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote:
On Mar 24, 11 19:00, sclytrack wrote:
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already has a long list of keywords, reserved words can't be
The library refernce has the following text concerning the is expression:
5. is ( Type Identifier : TypeSpecialization )
The condition is satisfied if Type is the same as TypeSpecialization, or if
Type is a class and TypeSpecialization is a base class or base interface of
it. The
== Quote from bearophile (bearophileh...@lycos.com)'s article
dsimcha:
I tried to keep it as consistent as possible with std.algorithm.
OK. Then the question is why std.algorithm uses normal strings instead of q{}
ones.
I personally think strings look nicer for simple cases like a + b. At
I have discussed this is little problem about three years ago; in the
meantime the situation is changed (rdmd has appeared, DMD has grown the
-deps switch, etc).
I have a little module named modu:
module modu;
import std.stdio;
int foo() {
return 0;
}
int main() {
dsimcha:
2. I think map() is much more frequently useful than lazyMap() and name
verbosity
should be inversely proportional to usage frequency.
I agree, but I have suggested to replace map = amap and lazyMap = map
(and to add a fully eager amap to std.algorithm). The increase of verbosity
On 03/24/2011 04:58 PM, Daniel Gibson wrote:
Am 24.03.2011 16:22, schrieb Don:
spir wrote:
http://www.gnu.org/philosophy/free-doc.html
I think this applies directly to D2.
Note: this post is no offence to Andrei's great work. Just a report we
/also/ need a free/copyleft D2 manual; or that
On 03/24/2011 05:32 PM, bearophile wrote:
I tried to keep it as consistent as possible with std.algorithm.
OK. Then the question is why std.algorithm uses normal strings instead of q{}
ones.
And regarding consistency with std.algorithm, a more important factor is that
std.algorithm.map is
On 03/24/2011 06:04 PM, dsimcha wrote:
Hmm, you do have a point there. Two reasons:
1. map() was there first and at the time I didn't feel like renaming it.
2. I think map() is much more frequently useful than lazyMap() and name
verbosity
should be inversely proportional to usage
On Thu, 2011-03-24 at 12:32 -0400, bearophile wrote:
dsimcha:
I tried to keep it as consistent as possible with std.algorithm.
OK. Then the question is why std.algorithm uses normal strings instead of q{}
ones.
Actually the question why user strings at all, why not have a lambda
On Fri, 25 Mar 2011 00:50:56 +0800, KennyTM~ wrote:
On Mar 24, 11 22:25, piotrek wrote:
On Thu, 24 Mar 2011 21:37:12 +0800, KennyTM~ wrote:
On Mar 24, 11 19:00, sclytrack wrote:
== Quote from piotrek (star...@tlen.pl)'s article
On Wed, 23 Mar 2011 23:17:32 +0100, Alvaro wrote:
D already
== Quote from Russel Winder (rus...@russel.org.uk)'s article
Is there actually any point in having a lazy parallel map?
It's for pipelining. Please read the API documentation for details about how it
works. It's actually only semi-lazy.
Unfortunately I don't have access to this kind of
== Quote from spir (denis.s...@gmail.com)'s article
On 03/24/2011 06:04 PM, dsimcha wrote:
Hmm, you do have a point there. Two reasons:
1. map() was there first and at the time I didn't feel like renaming it.
2. I think map() is much more frequently useful than lazyMap() and name
Hi,
I'm a second year student at De Montfort University studying Computer
Science. I am very much interested in working on the database API idea
that is proposed at
http://prowiki.org/wiki4d/wiki.cgi?GSOC_2011_Ideas#DatabaseAPI (I was
also quite interested in the containers idea, but it looks
Has this idea/project been assigned a mentor? I'd like to ask them and
the list, what's the best thing for me to do right now to prepare for
this?
You could also have a look at http://dsource.org/projects/ddbi
This shows some past efforts to create database interfaces.
On 3/24/2011 4:07 AM, bearophile wrote:
I receive an error like:
OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010
All rights reserved. http://www.digitalmars.com/ctg/optlink.html ... Offset
00137H Record Type 00C3 Error 1: Previous Definition Different : __Dmain ---
Jonathan M Davis:
But honestly, what you're trying to do just strikes me as plain weird. Maybe
it's a typical thing to do in scripting languages, but it definitely isn't in
compiled languages.
It's very common in well designed Python modules. Probably you don't see it in
compiled languages
On 3/24/2011 11:47 AM, bearophile wrote:
I too have suggested to use the version() statement, but My_Demo is not a
_standard_ version generated automatically by tools like rdmd. In a project
you usually use many modules, and some of them have demo code in their main.
If you use rdmd or similar
On 3/23/2011 11:27 PM, Jonathan M Davis wrote:
If you're on an Windows XP box and live in the continental U.S., I'd very much
appreciate if you could run this program and post the output:
XP:
1999-Mar-01 00:00:00
1999-Mar-08 00:00:00
1999-Mar-14 00:00:00
1999-Mar-14 01:00:00
1999-Mar-14
I don't want to edit the ideas wiki page without getting another opinion,
so what about:
- helping with getting dmd produce x64 code on Windows.
To quote Walter:
To do 64 bits on Windows requires:
1. 64 bit OMF
2. 64 bit librarian
3. 64 bit generating dmd
4. 64 bit C compiler
5. 64 bit
Hello,
I'm new in the D community so I don't have a fully understanding of the short
term needs of the community itself. After reading the posts at
[http://www.digitalmars.com/d/archives/digitalmars/D/ide/Future_of_Descent_and_D_Eclipse_IDE_635.html]
I agree with Bruno that an ANTLR parser could
Walter:
rdmd takes command line switches, which you can use to set the version for
which
main you want.
You are missing the point still, I was talking about a single standard version
that works in all cases.
Here is an example. I have a project (program) P, it contains many modules, its
On Mar 17, 2011, at 11:56 PM, Don wrote:
dsimcha wrote:
I've accumulated a bunch of little libraries via various evening and weekend
hacking projects over the past year or so, in various states of completion.
Most are things I'm at least half-considering for Phobos, though some belong
as
On Thu, 24 Mar 2011 20:54:56 +0200, Trass3r u...@known.com wrote:
I don't want to edit the ideas wiki page without getting another
opinion, so what about:
Me too - how about an image library? Being able to load/save popular image
formats from/to RGB pixel arrays would be a great start,
On Thu, 24 Mar 2011 00:17:03 -0400, Graham St Jack
graham.stj...@internode.on.net wrote:
Regarding unit tests - I have never been a fan of putting unit test code
into the modules being tested because:
* Doing so introduces stacks of unnecessary imports, and bloats the
module.
As Jonathan
== Quote from Sean Kelly (s...@invisibleduck.org)'s article
On Mar 17, 2011, at 11:56 PM, Don wrote:
dsimcha wrote:
I've accumulated a bunch of little libraries via various evening and
weekend
hacking projects over the past year or so, in various states of
completion.
Most are things
bearophile Wrote:
Kagamin:
unittests should be able to be a demo code for the module. Sometimes they
say that unittests do demonstrate, how the module should work.
For me the code inside unittests and the demo code inside the main (and the
functions called just by the main) have
On Wed, 23 Mar 2011 18:17:32 -0400, Alvaro alvarodotseg...@gmail.com
wrote:
D already has a long list of keywords, reserved words can't be used as
identifiers, which can be annoying. body in particular is a common
noun that programmers would gladly use as a variable name in physics
== Quote from Sean Kelly (s...@invisibleduck.org)'s article
On Mar 17, 2011, at 11:56 PM, Don wrote:
dsimcha wrote:
I've accumulated a bunch of little libraries via various evening and
weekend
hacking projects over the past year or so, in various states of
completion.
Most are things
On Thu, 24 Mar 2011 10:33:28 -0400, Bruno Medeiros
brunodomedeiros+spam@com.gmail wrote:
Well, now we go back to discussion of the discussion of whether one
thinks it's worthwhile to use and IDE or not (for general development,
not just code reviews).
I don't want to go into this
Sönke Ludwig lud...@informatik.uni-luebeck.de wrote in message
news:imeqnd$12ss$1...@digitalmars.com...
I'm all for this change.
Since there are already similar differences between 1.0 and 2.0 (e.g.
invariant()) and projects can be fixed by a more or less simple search and
replace, this
Kagamin:
you can switch on version matching the module name, or something similar that
will be easy to switch in a makefile.
module modu;
version(modu)
void main()
{
//...
}
I have explained Walter why that's not good:
I definitely had in as a problem. Its because some people like to
use that in C code. (Qt being the most recent example).
I've also had issues with string. That one can be common in C code.
Its a pretty bad habit of naming your variables for what type they are
instead of their purpose. I guess it
Graham St Jack graham.stj...@internode.on.net wrote in message
news:imem32$o4d$1...@digitalmars.com...
I would be interested to hear some success stories for the
unittest-keyword approach. So far I can't see any up-side.
If it weren't for the unittests working the way they do, I probably
On 24/03/2011 19:39, Vladimir Panteleev wrote:
On Thu, 24 Mar 2011 20:54:56 +0200, Trass3r u...@known.com wrote:
I don't want to edit the ideas wiki page without getting another
opinion, so what about:
Me too - how about an image library? Being able to load/save popular
image formats from/to
1 - 100 of 180 matches
Mail list logo