Re: Dgame revived

2015-03-16 Thread Foo via Digitalmars-d-announce

On Sunday, 15 March 2015 at 23:17:10 UTC, Joel wrote:

On Sunday, 15 March 2015 at 22:51:17 UTC, Namespace wrote:

On Sunday, 15 March 2015 at 22:30:06 UTC, Joel wrote:

I've been getting these errors:

I found two places that have 'package(Dgame):' - 
source\Dgame\Graphic\Color.d(30) and 
source\Dgame\Math\Rect.d(44), and if I remove them (comment 
them out), then only one error remains:
Yeah, I've used a dmd 2.067 version. I will fix this tomorrow, 
so that Dgame is useable with dmd 2.066.



Compiling using dmd...
Error: cannot read file main.d
FAIL 
.dub\build\main-debug-windows-x86-dmd_2066-7A96EE8F0A68A2410292AA6D54ADEF4C

\ dgame-example executable
Error executing command run: dmd failed with exit code 1.

That error should be fixed now.


I still get this error. Or am I using the wrong zip file?


Keep up the good work!

Thanks!
Currently you should use the Master branch until I fixed the 
package thing.


Re: Dgame revived

2015-03-15 Thread Foo via Digitalmars-d-announce
I think a tutorial on how to do tile map with sprites would be 
awesome


http://dgame-dev.de/?page=tutorialtut=tilemap


Re: This Week in D: Issue #4

2015-02-12 Thread Foo via Digitalmars-d-announce
On Thursday, 12 February 2015 at 10:06:43 UTC, Dominikus Dittes 
Scherkl wrote:
On Wednesday, 11 February 2015 at 14:32:46 UTC, Adam D. Ruppe 
wrote:
On Wednesday, 11 February 2015 at 11:21:46 UTC, Dominikus 
Dittes Scherkl wrote:

Did I missed issue #5 ?


No, I did; I was sick most of last week and decided to skip 
it, just going to bed instead on sunday night.


Sorry, I didn't wanted to create any pressure.
Of course health is more important.

Gute Besserung!


Always nice to see other german people here. :)
Moin.


Re: D idioms list

2015-01-08 Thread Foo via Digitalmars-d-announce
I saw recently (at last in this thread: 
http://forum.dlang.org/thread/tdfydchrairigdlgt...@forum.dlang.org#post-qakiogaqvmiwlneimhgu:40forum.dlang.org) 
that many users use


key in aa ? aa[key] : ValueType.init;

instead of

auto ptr = key in aa;
ptr ? *ptr : ValueType.init;

which is more economic.
Maybe you can add it to your list:


import std.stdio;

void main() {
immutable string key = foo;
immutable string[string] arr = [key : bar];

if (auto ptr = key in arr)
writeln(*ptr);
}



Re: D idioms list

2015-01-08 Thread Foo via Digitalmars-d-announce

On Thursday, 8 January 2015 at 20:00:11 UTC, Foo wrote:

On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote:
I've started a list of curated D tips and tricks here: 
http://p0nce.github.io/d-idioms/


Anything that you wished you learned earlier at one point in 
the D world is welcome to be added or suggested.


I think the focus should be on stuff that could make you more 
productive, or is just funky but that is up to debate.


Of course the D Cookbook still stays irreplaceable for a 
consistent, in-depth discussion of being D-enabled.


Thoughts?


Struct inheritance with alias this
You are using a class ;)


And the public label is redundant.


Re: German D Community?

2014-12-01 Thread Foo via Digitalmars-d-announce

On Monday, 1 December 2014 at 09:38:35 UTC, trgy wrote:

On Monday, 1 December 2014 at 09:22:47 UTC, Stefan Koch wrote:

On Monday, 1 December 2014 at 09:17:42 UTC, trgy wrote:

Hello,

is there a german D community?
I cannot find a forum/wiki or something else.

I hope you can help me. :)

Thanks in advance.

Best regards
trgy


There is a german community.
Most of them are here :)
As far as I know there is no seperate forum or wiki.


Thank you for this information.
Would nobody of the german community prefer to have a forum/wiki
in german?

Best regards trgy


I would like it. :)


Re: Multiple alias this is coming.

2014-09-18 Thread Foo via Digitalmars-d-announce

On Thursday, 18 September 2014 at 18:38:57 UTC, Ali Çehreli wrote:

On 09/18/2014 04:20 AM, IgorStepanov wrote:
I've created pull request, which introduces multiple alias 
this.

https://github.com/D-Programming-Language/dmd/pull/3998
Please see the additional tests and comment it.


Awesome!

This is the feature that I thought would never get implemented. 
:)


Ali


No, these are rvalue references. ;)


Re: D Programming Language source (dmd, phobos, etc.) has moved to github

2011-01-28 Thread foo
Nick Sabalausky Wrote:

 Robert Clipsham rob...@octarineparrot.com wrote in message 
 news:ihnk80$fsf$1...@digitalmars.com...
  On 25/01/11 22:28, Nick Sabalausky wrote:
  I don't understand why you think I'm claiming anything of the sort. I 
  never
  said anything like that. I keep saying over and over and over and over 
  and
  over and over and over.changeset number **PLUS WHICH REPOSITORY (and
  maybe branch, depending how the given system chooses to work)**
 
  Person A has a repository with one branch, 'default' and has made two 
  commits. The current revision number is 1.
  Person B clones the repository and creates a branch, 'ver2', and makes two 
  commits. The revision number in his repository is now 3, it is still 1 in 
  person A's.
  Person A makes a commit, his revision 2. B switches back to the 'default' 
  branch, and makes another commit.  His revision 4. A pulls from the 
  default branch, now B's revision 4 == A's revision 3.
 
  It's very easy for the revision numbers to get out of sync like this.
 
 Right, I already understood all of that. But consider the following scenario 
 (And I realize that neither Hg nor Git work exactly like this, but until 
 Lutger mentioned the extra details in git describe --tags it sounded like 
 Git was much further away from this than Hg is):
 
 Adam starts a repository:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp
 
 It's Adam's project, so that could be considered the main official repo. 
 Adam makes five commits in the default default branch. His current 
 revision is:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp/default/4
 
 Behind the scenes, that revision is associated with an SHA-1 hash of 
 df3a9 This same revision, thus, could also be referred to as:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp/hashes/df3a9...
 
 But usually that's only used behind-the-scenes. Adam never cares about it 
 and neither do any of the other SuperApp contributors. But the DVCS often 
 uses it internally. (Are the hashes normally assiciated with a specific 
 branch? If so, then just consider it SuperApp/default/hashes/df3a9... 
 instead of SuperApp/hashes/df3a9...).
 
 Now, along comes Bob who clones Adam's SuperApp repo. Bob's copy of the same 
 revision is:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Bob/SuperApp/default/4
 
 Naturally, he also has the same hash as Adam:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Bob/SuperApp/hashes/df3a9...
 
 Then Adam and Bob start making commits, updates, pushes, pulls, etc, and 
 their revision numbers get out-of-sync. Adam and Bob are talking on a 
 newsgroup, and Adam mentions a super-cool improvement he just committed:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp/default/81
 
 Adam doesn't know this, but that just happens to have the hash 78ac1... 
 and thus be AKA:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp/hashes/78ac1...
 
 Bob wants Adam's new change, so he tells his DVCS to merge in:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp/default/81
 
 No problem. Bob didn't ask his DVCS for r81, he asked it for Adam's r81. 
 This revision now becomes Bob's:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Bob/SuperApp/default/117
 dvcs://joes-fancy-dvcs-hosting.org/users/Bob/SuperApp/hashes/78ac1...
 
 Since Adam announced this on a NG, Carlos also saw it and grabbed the new 
 change:
 
 dvcs://carlos-coder.co.uk/SuperApp/default/94
 dvcs://carlos-coder.co.uk/SuperApp/hashes/78ac1...
 
 They all start to use it, but Bob discovers a critical problem with it. So 
 Bob tells the NG to avoid:
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Adam/SuperApp/default/81
 
 Or, Bob might have referred to it with his own revision instead (Maybe 
 Adam's account was temporarily down):
 
 dvcs://joes-fancy-dvcs-hosting.org/users/Bob/SuperApp/default/117
 
 So Carlos tells his DVCS to revert that URI. To do this, Carlos's DVCS looks 
 up Adam's or Bob's URI and finds the associated hash: 78ac1 Then it 
 looks at Carlos's own copy of the repo, sees the active branch is default, 
 and finds the revision in default associated with the hash 78ac1..., 
 which is:
 
 dvcs://carlos-coder.co.uk/SuperApp/default/94
 
 Which then gets reverted.
 
 
 

This looks to me like an awful solution in search for a problem. 
The commit hash is the internal ID mainly used by git itself. If you want to 
communicate commits to other developers you have better means to do so. Let's 
emphasize that auto incremented numbers is NOT those means. 

commit have sha1 hashes Just like people have ID numbers to identity them (or 
the social security number in the US). That doesn't mean I would call you in 
conversation: person#122345445 I'll call you by a HUMAN GIVEN NAME (e.g. 
Nick).

If you want to refer to a git commit on the NG simply tag it with a meaningful 
name such as: