On Sat, 4 Feb 2012 17:17:28 -0500
"Nick Sabalausky" wrote:
> I thought Git was supposed to be able to intelligently handle
> moved/renamed files? So shouldn't fixing those pull requests amount
> to "pull, possibly fix merge conflicts, push" just like with any
> other upstream change?
I thought t
On 2/3/2012 4:28 PM, H. S. Teoh wrote:
I agree with this. Based on current documentation, I didn't even know
the GC can be replaced at compile-time until someone mentioned it. And
up to now I still don't know how exactly to do this, since I couldn't
find any docs for it.
The documentation for t
On Sun, 2012-02-05 at 01:08 -0600, Caligo wrote:
> I would like to kindly request for Emacs D mode to be updated. I've
> been using 2.0.4, which I think was last released in 2007, but it
> doesn't reflect the latest version of D. Its indentation also has
> issues.
14 months ago I started a Baza
On 5 February 2012 07:47, Sean Cavanaugh wrote:
>
> Looks good so far:
>
> it could use float[2] code wherever there is float[3] code (magnitude2
> etc)
>
Yep, I intended to do this. You'll see I added dot2, I just didin't add the
others yet :P
Note: this is FAR from complete, I just wanted to
On 5 February 2012 09:22, F i L wrote:
> Looks good to me so far ;-)
>
> First criticism I expect is for many to insist on a class-style vector
>> library, which I personally think has no place as a low level, portable
>> API.
>> Everyone has a different idea of what the perfect vector lib shoul
On 02/04/2012 01:32 PM, Stewart Gordon wrote:
Under D1, std.c.windows.windows has HANDLE it as a typedef of void*.
While I forget whether they're actually pointers. I guess it fits given
that the C headers define it as void* and that handles are fundamentally
different from pointers from an app's
After some time with D, C++ is now a nightmare for me. (especially on
generic coding)
Think about replicating this simple code in C++.
void fun(T)(T a)
{
static if(cond(T))
{
auto var = make(a);
}
else
{
auto tmp = make(a);
auto var = make_proxy(tmp);
Now that I've gotten it worked out, I've put up an article with my complete
notes on the whole process in case anyone's interested or needs help doing
the same thing:
https://www.semitwist.com/articles/article/view/the-better-svn-git-guide
On 02/05/2012 02:49 PM, so wrote:
After some time with D, C++ is now a nightmare for me. (especially on
generic coding)
Think about replicating this simple code in C++.
void fun(T)(T a)
{
static if(cond(T))
{
auto var = make(a);
}
else
{
auto tmp = make(a);
auto var = make_proxy(tmp);
}
...
}
A
On Sunday, 5 February 2012 at 14:24:20 UTC, Timon Gehr wrote:
This should work:
#define DOTDOTDOT ...
template void fun(T a){
if(cond::value) {
auto var = make(a);
DOTDOTDOT;
}else{
auto tmp = make(a);
auto var = make_proxy(tmp);
DOTDOTDOT;
}
}
It
On 02/05/2012 03:53 PM, so wrote:
On Sunday, 5 February 2012 at 14:24:20 UTC, Timon Gehr wrote:
This should work:
#define DOTDOTDOT ...
template void fun(T a){
if(cond::value) {
auto var = make(a);
DOTDOTDOT;
}else{
auto tmp = make(a);
auto var = make_proxy(tmp);
DOTDOTDOT;
}
}
It won't wor
On Sun, Feb 05, 2012 at 12:10:33AM -0800, Walter Bright wrote:
> On 2/3/2012 4:28 PM, H. S. Teoh wrote:
> >I agree with this. Based on current documentation, I didn't even know
> >the GC can be replaced at compile-time until someone mentioned it.
> >And up to now I still don't know how exactly to d
On Sun, Feb 5, 2012 at 12:57 PM, Timon Gehr wrote:
> On 02/05/2012 03:53 PM, so wrote:
>>
>> On Sunday, 5 February 2012 at 14:24:20 UTC, Timon Gehr wrote:
>>
>>> This should work:
>>>
>>> #define DOTDOTDOT ...
>>>
>>> template void fun(T a){
>>> if(cond::value) {
>>> auto var = make(a);
>>> DOTDOT
On Sunday, 5 February 2012 at 14:57:58 UTC, Timon Gehr wrote:
On 02/05/2012 03:53 PM, so wrote:
You just maintain the macro.
1. When actual part of the work lies in the macro.
#define DETAIL \
... \
... \
...
You now have an enigma and compiler won't help you.
2. And if you need another cond
On Sunday, 5 February 2012 at 15:17:39 UTC, Jose Armando Garcia
wrote:
What I would really like to see in D is:
immutable variable = if (boolean condition)
{
// initialize based on boolean condition being true
}
else
{
// initialize based on boolean condition being false
}
Scala has this and
On 04.02.2012 00:12, Zachary Lund wrote:
Here are some things I'm unhappy with currently.
1. Documentation
I find certain things, of which I will start writing down and writing
patches for, in the documentation that are unsatisfactory. Two in
particular is the current situation with memory mana
On 02/05/2012 04:17 PM, Jose Armando Garcia wrote:
On Sun, Feb 5, 2012 at 12:57 PM, Timon Gehr wrote:
On 02/05/2012 03:53 PM, so wrote:
On Sunday, 5 February 2012 at 14:24:20 UTC, Timon Gehr wrote:
This should work:
#define DOTDOTDOT ...
template void fun(T a){
if(cond::value) {
auto var
On Sat, 28 Jan 2012 17:58:40 -0800, J Arrizza wrote:
Isn't this the killer "app" for D (like ROR for Ruby, etc.) ? There was a
thread a while ago where someone said the popularity of a language depends
on an app that drives the use of that language.
There's also the up-coming ARM based Blackberr
On Sun, Feb 5, 2012 at 1:24 PM, so wrote:
> On Sunday, 5 February 2012 at 15:17:39 UTC, Jose Armando Garcia wrote:
>
>> What I would really like to see in D is:
>>
>> immutable variable = if (boolean condition)
>> {
>> // initialize based on boolean condition being true
>> }
>> else
>> {
>> // ini
On Sun, Feb 5, 2012 at 1:44 PM, Timon Gehr wrote:
> On 02/05/2012 04:17 PM, Jose Armando Garcia wrote:
>>
>> On Sun, Feb 5, 2012 at 12:57 PM, Timon Gehr wrote:
>>>
>>> On 02/05/2012 03:53 PM, so wrote:
On Sunday, 5 February 2012 at 14:24:20 UTC, Timon Gehr wrote:
> This sh
On 04/02/2012 19:40, Yao Gomez wrote:
Just use the Win32 API way when STRICT is defined:
---
struct HANDLE__{ int unused; }
alias HANDLE__* HANDLE;
Looking through MinGW, this is the code:
#ifdef STRICT
typedef void *HANDLE;
#define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n
#else
typ
On 2/5/12 9:57 AM, Jose Armando Garcia wrote:
On Sun, Feb 5, 2012 at 1:44 PM, Timon Gehr wrote:
immutable variable = (boolean_condition) ? {
// initialize based on boolean_condition being true
}():{
// initialize based on boolean_condition being false
}();
Cool, now I want some synt
On Sun, Feb 5, 2012 at 2:13 PM, Andrei Alexandrescu
wrote:
> On 2/5/12 9:57 AM, Jose Armando Garcia wrote:
>>
>> On Sun, Feb 5, 2012 at 1:44 PM, Timon Gehr wrote:
>>>
>>> immutable variable = (boolean_condition) ? {
>>> // initialize based on boolean_condition being true
>>> }():{
>>> // in
On 02/05/2012 09:27 AM, Don wrote:
On 04.02.2012 00:12, Zachary Lund wrote:
Here are some things I'm unhappy with currently.
1. Documentation
I find certain things, of which I will start writing down and writing
patches for, in the documentation that are unsatisfactory. Two in
particular is th
On 2012-02-05 00:42, H. S. Teoh wrote:
On Sat, Feb 04, 2012 at 07:11:25PM +0100, Jacob Carlborg wrote:
On 2012-02-03 20:55, H. S. Teoh wrote:
On Fri, Feb 03, 2012 at 08:28:04PM +0100, Trass3r wrote:
[...]
I rather have a slightly bigger executable than having my system
cluttered with hundreds
On 02/05/2012 09:18 AM, H. S. Teoh wrote:
On Sun, Feb 05, 2012 at 12:10:33AM -0800, Walter Bright wrote:
On 2/3/2012 4:28 PM, H. S. Teoh wrote:
I agree with this. Based on current documentation, I didn't even know
the GC can be replaced at compile-time until someone mentioned it.
And up to now
On 2/5/12 10:25 AM, Jose Armando Garcia wrote:
On Sun, Feb 5, 2012 at 2:13 PM, Andrei Alexandrescu
wrote:
On 2/5/12 9:57 AM, Jose Armando Garcia wrote:
On Sun, Feb 5, 2012 at 1:44 PM, Timon Gehrwrote:
immutable variable = (boolean_condition) ? {
// initialize based on boolean_condi
On Fri, Jan 20, 2012 at 7:47 AM, Johannes Pfau wrote:
> Jose Armando Garcia wrote:
>
>> On Thu, Jan 19, 2012 at 9:41 PM, Andrei Alexandrescu
>> wrote:
>>> On 1/19/12 4:43 PM, Steven Schveighoffer wrote:
On Thu, 19 Jan 2012 14:06:00 -0500, torhu wrote:
>
> If the type of byKeys
On 2/5/12 11:25 AM, Jose Armando Garcia wrote:
std.log still works! hehe. std.log is ready for review but
unfortunately it depends on some changes I have made to druntime. I
have tried to get those changes into druntime but they are just
sitting in there as pull requests. I have recently decided
On 05/02/2012 16:13, Stewart Gordon wrote:
but found that it allows implicit conversions between all handle types, not
just up the
hierarchy. Is this a bug?
I was wrong - it doesn't allow an arbitrary handle to be passed to a function accepting a
specific handle type, but it does allow arbit
On Sun, Feb 5, 2012 at 3:26 PM, Andrei Alexandrescu
wrote:
> On 2/5/12 11:25 AM, Jose Armando Garcia wrote:
>>
>> std.log still works! hehe. std.log is ready for review but
>> unfortunately it depends on some changes I have made to druntime. I
>> have tried to get those changes into druntime but t
On 2/5/2012 9:13 AM, Zachary Lund wrote:
On 02/05/2012 09:27 AM, Don wrote:
Could you please explain what you mean about CTFE? I'm not aware of any
problems with the documentation. (I gave the docs a complete rewrite a
couple of releases ago).
I didn't see this documentation (under the Functio
El 18/01/2012 21:37, Nick Sabalausky escribió:
"Nick Sabalausky" wrote in message
Plus I've spent time in other langauges where using a function name without
parens is the way to refer to a function itself, rather than invoke the
function. That's something I very much like: "foo" refers to the f
On Sun, Feb 05, 2012 at 10:44:37AM -0800, Walter Bright wrote:
[...]
> Perhaps CTFE should have its own page.
That's an excellent idea. A centralized place where we can put all
CTFE-related stuff, current limitations, CTFE-specific quirks, etc..
T
--
Error: Keyboard not attached. Press F1 to c
On Sunday, February 05, 2012 15:49:04 so wrote:
> After some time with D, C++ is now a nightmare for me. (especially on
> generic coding)
> Think about replicating this simple code in C++.
>
> void fun(T)(T a)
> {
> static if(cond(T))
> {
> auto var = make(a);
> }
> els
On 2012-02-05 16:25:33 +, Jose Armando Garcia said:
On Sun, Feb 5, 2012 at 2:13 PM, Andrei Alexandrescu
wrote:
Make it a function.
I agree that in theory that you can do all this stuff in D but the
reality is that developers are lazy and end up fighting the language.
Make it a functio
I've tried multiple times to contact Walter through his websites,
but apparently _that's_ a dead end so...
http://i.imgur.com/DzrN6.png
Look at it! The selection pulses! Empire's never looked so good!
There are some rough edges; the save games fail to load, demo
isn't working, the text log is
Johannes Pfau wrote:
Hi,
Hi,
SHA1 and MD5 should work in CTFE now.
On Sunday, 5 February 2012 at 03:58:03 UTC, Steven Schveighoffer
wrote:
Static linking has its advantages too, but as far as phobos and
druntime are concerned, dynamic linking would be way way better.
Bollocks. In the general case (which is silly to talk about, I'll
admit) I'd take static lin
On 2/5/2012 6:44 PM, Bernard Helyer wrote:
I've tried multiple times to contact Walter through his websites, but apparently
_that's_ a dead end so...
http://i.imgur.com/DzrN6.png
Look at it! The selection pulses! Empire's never looked so good!
There are some rough edges; the save games fail to
On Sun, Feb 5, 2012 at 8:44 PM, Bernard Helyer wrote:
> I've tried multiple times to contact Walter through his websites, but
> apparently _that's_ a dead end so...
>
> http://i.imgur.com/DzrN6.png
>
> Look at it! The selection pulses! Empire's never looked so good!
>
> There are some rough edges;
On Monday, 6 February 2012 at 04:33:56 UTC, Caligo wrote:
On Sun, Feb 5, 2012 at 8:44 PM, Bernard Helyer
wrote:
I've tried multiple times to contact Walter through his
websites, but
apparently _that's_ a dead end so...
http://i.imgur.com/DzrN6.png
Look at it! The selection pulses! Empire's n
Am 06.02.2012, 03:44 Uhr, schrieb Piotr Szturmaj :
Johannes Pfau wrote:
Hi,
Hi,
SHA1 and MD5 should work in CTFE now.
So I could in theory do import("important.binary") and calculate and store
it's checksums in the executable. You never know when you need this
feature!
The optional third parameter of `indexOf' can be called with
`CaseSensitive.no'. But that parameter is left untouched.
Instead a check with `toUpper( c)' is used, thereby risking a
further visitation of the whole string .
Using CaseSensitive.no is a lot slower
Hmmm then perhaps a whole re-wr
On 2/2/2012 1:26 PM, Johannes Pfau wrote:
std.uuid is ready to be reviewed. As far as I know there's nothing
being reviewed right now, so we could start the review as soon as
a review manager has been found.
I'd like to see a string constant that is a regex for a UUID in its canonical
form. Th
mixin(T_isPangram("DE_isPangram", "abcdefghijklmnopqrstuvwxyz",
"\\u00DF\\u00e4\\u00f6\\u00dc"));
somehow this got mixed up with the earlier messed up one.. this
is the correction for this line.
mixin(T_isPangram("DE_isPangram", "abcdefghijklmnopqrstuvwxyz",
"\\u00DF\\u00e4\\u00f6\\u00fc"));
46 matches
Mail list logo