Al 05/02/12 20:22, En/na Kagamin ha escrit:
On Sunday, 5 February 2012 at 18:19:20 UTC, xancorreu wrote:
So, out of my scope and "probably this does not work". For this
reason I ask for "official solution". None, it sounds very very bad.
What do you think I could do practi
Al 05/02/12 18:30, En/na Johannes Pfau ha escrit:
Am Sun, 5 Feb 2012 14:16:37 -0200
schrieb Jose Armando Garcia:
On Sun, Feb 5, 2012 at 1:15 PM, xancorreu wrote:
Al 05/02/12 05:26, En/na Jose Armando Garcia ha escrit:
On Thu, Feb 2, 2012 at 4:48 PM, xancorreu
wrote:
Hi,
Is there any way
Al 05/02/12 05:26, En/na Jose Armando Garcia ha escrit:
On Thu, Feb 2, 2012 at 4:48 PM, xancorreu wrote:
Hi,
Is there any way for localizate and internationalizate messages?
I were shocked if D has something like Fantom
[http://fantom.org/doc/docLang/Localization.html]. Gettext is pretty ugly
Al 03/02/12 19:48, En/na DNewbie ha escrit:
You can build multiple versions of you app:
http://dsource.org/projects/tutorials/wiki/LocalesExample
On Thu, Feb 2, 2012, at 07:48 PM, xancorreu wrote:
Hi,
Is there any way for localizate and internationalizate messages?
I were shocked if D has
Al 03/02/12 18:07, En/na Trass3r ha escrit:
I deduce so that there is no "official" support for that. If it's,
it's a pain.
Pain? Writing such a system can be done in a couple of lines.
How? I don't know how to do that. How to read user current locale?
An official version could simplify the t
Al 03/02/12 09:09, En/na Alex_Dovhal ha escrit:
"xancorreu" wrote:
Hi,
Is there any way for localizate and internationalizate messages?
I were shocked if D has something like Fantom
[http://fantom.org/doc/docLang/Localization.html]. Gettext is pretty ugly
;-)
I use small D
Al 02/02/12 20:40, En/na Stewart Gordon ha escrit:
On 02/02/2012 18:48, xancorreu wrote:
Hi,
Is there any way for localizate and internationalizate messages?
I were shocked if D has something like Fantom
[http://fantom.org/doc/docLang/Localization.html]. Gettext is pretty
ugly ;-)
Is this
Al 03/02/12 00:14, En/na bearophile ha escrit:
xancorreu:
But you "only" put a "in" in
recFactorial function argument. What this mean? **Why** this is more
efficient than mine?
It wasn't meant to improve performance. "in" turns a function argument to "
Al 02/02/12 20:40, En/na Jonathan M Davis ha escrit:
And whether that's the best way to handle it depends on what you're
trying to do in terms of user input and error messages. How on earth
is all of that going to be handled generically? It all depends on what
the programmer is trying to do. Sw
Al 02/02/12 20:11, En/na Ali Çehreli ha escrit:
On 02/02/2012 11:00 AM, xancorreu wrote:
> Al 02/02/12 19:18, En/na bearophile ha escrit:
> Can I say "serialize the first, second and third arguments as Class
> Person"?
>
> I mean, if you define a class Person like:
&g
Al 02/02/12 19:30, En/na bearophile ha escrit:
xancorreu:
I get "segment violation" error with ./factorial 40
How can I resolve it?
You are having a stack overflow. DMD currently doesn't print a good message
because of this regression that is being worked on:
http://
Al 02/02/12 19:18, En/na bearophile ha escrit:
Alex R. Petersen:
(Sorry for my last blank answer.)
Because D is a strongly typed language. Casting a string to an int
doesn't make sense from a type system perspective.
I think that D being strongly typed is not significant here. When you cast a
Hi,
Is there any way for localizate and internationalizate messages?
I were shocked if D has something like Fantom
[http://fantom.org/doc/docLang/Localization.html]. Gettext is pretty
ugly ;-)
If not, any plannings?
Thanks,
Xan.
I get "segment violation" error with ./factorial 40
How can I resolve it?
My code is:
import std.stdio, std.bigint, std.string, std.conv, std.stream;
BigInt recFactorial(int n) {
if (n == 0)
return BigInt(1);
else
return (BigInt(n) * recFactorial(n - 1));
}
void ma
Why cast(int) does not work and I have to call another function?
Thanks,
Al 02/02/12 17:24, En/na Adam D. Ruppe ha escrit:
On Thursday, 2 February 2012 at 16:21:39 UTC, xancorreu wrote:
$ ./factorial 222
Factorial requires a number
args[0] is the name of your program.
(The first thing you
Al 02/02/12 16:58, En/na David Nadlinger ha escrit:
On 2/2/12 1:35 PM, xancorreu wrote:
In this code, how can I cast the args[0] string to int for computing
factorial(args[0])?
std.conv.to!int(…) or parse().
Sorry, if condition was wrong. conv.to!int is perfect!
Thanks,
Hope this helps
Al 02/02/12 16:58, En/na David Nadlinger ha escrit:
On 2/2/12 1:35 PM, xancorreu wrote:
In this code, how can I cast the args[0] string to int for computing
factorial(args[0])?
std.conv.to!int(…) or parse().
to!int gives me this error:
$ ./factorial 222
Factorial requires a number
parse
Hi,
In this code, how can I cast the args[0] string to int for computing
factorial(args[0])?
import std.stdio, std.bigint, std.string, std.conv, std.stream;
BigInt recFactorial(int n) {
if (n == 0)
return BigInt(1);
else
return (BigInt(n) * recFactorial(n - 1));
}
void main(string[] args) {
Al 26/01/12 19:48, En/na Alex Rønne Petersen ha escrit:
On 26-01-2012 18:06, xancorreu wrote:
Al 26/01/12 17:15, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 01:34:39PM +0100, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can
Al 26/01/12 18:43, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 06:06:38PM +0100, xancorreu wrote:
[...]
I note that gdc is completely free software but dmd runtime is not.
You mean free as in freedom, not as in price.
Yes, both
An alternative is ldc, also free.
I looked up ldc
Al 26/01/12 17:15, En/na H. S. Teoh ha escrit:
On Thu, Jan 26, 2012 at 01:34:39PM +0100, Trass3r wrote:
On Thursday, 26 January 2012 at 11:46:19 UTC, sami wrote:
my question is if there thing i can do with dmd only and visa
versa?
what the feature of one of them over the other?
what the differe
Thanks Gehr for your examples. Very illustrative.
I wanted what you do in example 1 like a library. It's easy import
actors library than to define your own actors (class).
Thanks,
Xan.
Al 24/01/12 21:11, En/na Timon Gehr ha escrit:
On 01/24/2012 07:51 PM, xancorreu wrote:
Al 24/01/12
Al 24/01/12 13:37, En/na Dejan Lekic ha escrit:
Xan, read this article please:
http://www.informit.com/articles/article.aspx?p=1609144
You have exactly what you are looking for in the D runtime and
standard library.
I read it and **after** I post the question. I don't know how
std.concurrency
Al 21/01/12 14:28, En/na Bystroushaak ha escrit:
That is really strange - for me, it works with both files. Are you
sure, that you can manually download that pdf file? Maybe your
provider blocking your connection, or something like that.
I don't think so. It's arxiv pdf.
What type of compile
24 matches
Mail list logo