Re: Class/struct invariants

2010-06-17 Thread Stewart Gordon
bearophile wrote: Are D invariants supposed to be so "relaxed"? They don't get called with default constructors: http://d.puremagic.com/issues/show_bug.cgi?id=519 Stewart.

Re: I still don't understand the align attribute

2010-06-17 Thread Stewart Gordon
Trass3r wrote: http://digitalmars.com/d/2.0/attribute.html#align "align by itself sets it to the default, which matches the default member alignment of the companion C compiler." OK! "align(Integer): Integer specifies the alignment which matches the behavior of the companion C compiler when

Re: Class/struct invariants

2010-06-17 Thread bearophile
Stewart Gordon: > http://d.puremagic.com/issues/show_bug.cgi?id=519 Thank you, then my bug 4329 is a dupe, I'll mark it so :-) Bye, bearophile

Proper way to access posix functions

2010-06-17 Thread Byron Heads
Whats the proper way to get access to some of the Posix functions? ie. fork setsid... import core.sys.posix.unistd; //? Is it proper to import from core.sys ? -B

Re: Proper way to access posix functions

2010-06-17 Thread Lars T. Kyllingstad
On Thu, 17 Jun 2010 20:09:29 +, Byron Heads wrote: > Whats the proper way to get access to some of the Posix functions? > > ie. fork setsid... > > import core.sys.posix.unistd; //? Is it proper to import from core.sys Yes, that is correct. :) -Lars

setMaxMailboxSize

2010-06-17 Thread Byron Heads
is setMaxMailboxSize not implemented yet or is it bugged? This test program does not work right: import core.sys.posix.unistd; import std.stdio, std.concurrency, std.random; void main() { auto a = spawn( &bar, thisTid ); setMaxMailboxSize( a, 1, OnCrowding.bloc

Re: setMaxMailboxSize

2010-06-17 Thread Byron Heads
On Thu, 17 Jun 2010 21:31:10 +, Byron Heads wrote: > is setMaxMailboxSize not implemented yet or is it bugged? > This is a little better example of it not working: import core.sys.posix.unistd; import std.stdio, std.concurrency, std.random; enum MAX = 1; void main() {

Re: setMaxMailboxSize

2010-06-17 Thread torhu
On 17.06.2010 23:31, Byron Heads wrote: is setMaxMailboxSize not implemented yet or is it bugged? It's just an empty function currently. If you want to see for yourself, it's in dmd2/src/phobos/std/concurrency.d.

ERROR - "cannot implicitly convert expression (s) of type int[3u] to int*"

2010-06-17 Thread Chick Corea
[NOTE - sent twice as I was unsure that first attempt, pre-subscription, was received.] Working through the basics of D and running into simple problems that I cannot solve, such as:     Error: cannot implicitly convert expression (s) of type int[3u] to int*     Error: cannot implicitly convert e

Re: ERROR - "cannot implicitly convert expression (s) of type int[3u] to int*"

2010-06-17 Thread Ellery Newcomer
On 06/18/2010 12:25 AM, Chick Corea wrote: [NOTE - sent twice as I was unsure that first attempt, pre-subscription, was received.] Working through the basics of D and running into simple problems that I cannot solve, such as: Error: cannot implicitly convert expression (s) of type int[3u]