ini library in OSX

2014-09-08 Thread Joel via Digitalmars-d-learn

Is there any ini library that works in OSX?

I've tried the ones I found. I think they have the same issue.

Joels-MacBook-Pro:ChrisMill joelcnz$ dmd ini -unittest
ini.d(330): Error: cannot pass dynamic arrays to extern(C) vararg 
functions
ini.d(387): Error: undefined identifier 'replace', did you mean 
'template replace(E, R1, R2)(E[] subject, R1 from, R2 to) if 
(isDynamicArray!(E[])  isForwardRange!R1  isForwardRange!R2 
 (hasLength!R2 || isSomeString!R2))'?
ini.d(495): Error: cannot pass dynamic arrays to extern(C) vararg 
functions
ini.d(571): Error: cannot pass dynamic arrays to extern(C) vararg 
functions
ini.d(571): Error: cannot pass dynamic arrays to extern(C) vararg 
functions

Joels-MacBook-Pro:ChrisMill joelcnz$


Re: D1: Windows DWORD conversion in D

2014-09-08 Thread Kagamin via Digitalmars-d-learn

cast(DWORD)v


Re: Novice web developer trying to learn D

2014-09-08 Thread Kagamin via Digitalmars-d-learn

On Sunday, 7 September 2014 at 21:06:48 UTC, zuzuleinen wrote:
The reason I post this is to ask you what other books do you 
think I should try in order to become hireable in the next 2 
years?


See 
http://forum.dlang.org/thread/sgtnnyvmhxzexupgw...@forum.dlang.org


Re: D1: Windows DWORD conversion in D

2014-09-08 Thread jicman via Digitalmars-d-learn

On Monday, 8 September 2014 at 07:08:25 UTC, Kagamin wrote:

cast(DWORD)v


Darn it!  That is so easy.  I am convinced that D is the best 
language ever.


thanks,

josé


Re: D1: Windows DWORD conversion in D

2014-09-08 Thread Temtaime via Digitalmars-d-learn

DWORD is an uint.


Re: Novice web developer trying to learn D

2014-09-08 Thread Gary Willoughby via Digitalmars-d-learn

On Sunday, 7 September 2014 at 21:06:48 UTC, zuzuleinen wrote:

Hello,

First, here is my Linkedin profile 
http://www.linkedin.com/in/andreiboar in order to make an image 
of my professional background. I do realise here are really 
good programmers for which this background might sound like a 
joke, but this is what I did so far.


After watching some presentantions from DConf, and trying the 
language I decided to give it a try in the future.


Currrently I'm reading the Programming in D book by Ali 
Çehreli, and then The D Programming Language by Andrei 
Alexandrescu in order to learn more.


The reason I post this is to ask you what other books do you 
think I should try in order to become hireable in the next 2 
years?


As a web developer I know I lack a lot of information, but I'm 
willing to do the hard work. So if anyone has any other 
books/things I need to know and is willing to make me like a 
small roadmap to become a good D developer I would really 
appreciate.


Thanks a lot,
Andrei


Hi and welcome.

I find it great that you want to learn and grow as a developer, 
many web devs don't and yet still think they're awesome. Using a 
language like D is a complete departure from what you've been 
doing so far because it compiles to native code and with that 
brings quite a few things to learn.


So where to start. First, i would take time to learn about 
pointers. These are pretty fundamental when dealing with native 
code and there's no real way of getting around that. Here's a 
five minute guide:


http://denniskubes.com/2012/08/16/the-5-minute-guide-to-c-pointers/

After that i would probably familiarise myself with the compiler 
and linker:


http://dlang.org/dmd-windows.html
http://dlang.org/dmd-linux.html
http://www.lurklurk.org/linkers/linkers.html

You're already reading Ali's and Andrei's books so that's good.

Try reading the phobos documentation to familiarise yourself with 
the library:


http://dlang.org/phobos/index.html

Maybe controversial but i would also consider reading the C book 
for a good grounding in pointers and memory allocation, etc. A 
lot of this is relevant in D.


http://en.wikipedia.org/wiki/The_C_Programming_Language

It's nice to know these basics and you'll appreciate D a whole 
lot more coming from C. ;)


Remember to ask questions here as you go.


Re: Novice web developer trying to learn D

2014-09-08 Thread zuzuleinen via Digitalmars-d-learn
Thank you all for all your suggestions, I really appreciate them 
:)


Now it's time to dive in, you gave me good resources :)


Re: Novice web developer trying to learn D

2014-09-08 Thread AsmMan via Digitalmars-d-learn

On Sunday, 7 September 2014 at 21:06:48 UTC, zuzuleinen wrote:

Hello,

First, here is my Linkedin profile 
http://www.linkedin.com/in/andreiboar in order to make an image 
of my professional background. I do realise here are really 
good programmers for which this background might sound like a 
joke, but this is what I did so far.


After watching some presentantions from DConf, and trying the 
language I decided to give it a try in the future.


Currrently I'm reading the Programming in D book by Ali 
Çehreli, and then The D Programming Language by Andrei 
Alexandrescu in order to learn more.


The reason I post this is to ask you what other books do you 
think I should try in order to become hireable in the next 2 
years?


As a web developer I know I lack a lot of information, but I'm 
willing to do the hard work. So if anyone has any other 
books/things I need to know and is willing to make me like a 
small roadmap to become a good D developer I would really 
appreciate.


Thanks a lot,
Andrei


Before go to D I recomend you to take a look at the C programming 
language (as Gary Willoughby already mentioned). I think it's 
really fundamental.


Re: Novice web developer trying to learn D

2014-09-08 Thread Gary Willoughby via Digitalmars-d-learn
On Monday, 8 September 2014 at 20:58:20 UTC, ketmar via 
Digitalmars-d-learn wrote:

On Mon, 08 Sep 2014 20:47:19 +
AsmMan via Digitalmars-d-learn 
digitalmars-d-learn@puremagic.com

wrote:

Before go to D I recomend you to take a look at the C 
programming language (as Gary Willoughby already mentioned). I 
think it's really fundamental.
do you really want him to drop programming? there is no need to 
start
with Ford Model T to drive Lamborghini Estoque. 
*conceptions* are
fundamental, not languages. and D is much better starting point 
than C.

i know it, i have almost two decades of C expirience.


I would agree but that little C book is an amazing read and full 
of valuable lessons.


Re: Novice web developer trying to learn D

2014-09-08 Thread ketmar via Digitalmars-d-learn
On Mon, 08 Sep 2014 21:05:53 +
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:

 I would agree but that little C book is an amazing read and full 
 of valuable lessons.
and pointer arithmetic, and memory leaks, and zero-terminated strings,
and writing generic algoritms with ugly casting, and... bad habits die
hard.


signature.asc
Description: PGP signature


Re: Novice web developer trying to learn D

2014-09-08 Thread bachmeier via Digitalmars-d-learn
On Monday, 8 September 2014 at 20:58:20 UTC, ketmar via 
Digitalmars-d-learn wrote:

On Mon, 08 Sep 2014 20:47:19 +
AsmMan via Digitalmars-d-learn 
digitalmars-d-learn@puremagic.com

wrote:

Before go to D I recomend you to take a look at the C 
programming language (as Gary Willoughby already mentioned). I 
think it's really fundamental.
do you really want him to drop programming? there is no need to 
start
with Ford Model T to drive Lamborghini Estoque. 
*conceptions* are
fundamental, not languages. and D is much better starting point 
than C.

i know it, i have almost two decades of C expirience.


+1

If you really want background before moving on to D, go with 
assembly instead. C is no more a prerequisite for D than is 
lambda calculus.