On Sunday, 7 October 2012 at 22:31:05 UTC, Dmitry Olshansky wrote:
On 08-Oct-12 01:42, Rene Zwanenburg wrote:
Ah yes, I understand. Thanks.
For the sake of cleanliness (and Walter's article on component
programming ;) ), is there a way to treat a file as an
InputRange of
characters? I think t
On 08-Oct-12 01:42, Rene Zwanenburg wrote:
Ah yes, I understand. Thanks.
For the sake of cleanliness (and Walter's article on component
programming ;) ), is there a way to treat a file as an InputRange of
characters? I think this is quite a common use case.
IRC something along the lines of:
On 10/07/2012 02:42 PM, Rene Zwanenburg wrote:
> For the sake of cleanliness (and Walter's article on component
> programming ;) ), is there a way to treat a file as an InputRange of
> characters? I think this is quite a common use case.
I've just discovered the undocumented byRecord:
Again, as
Ah yes, I understand. Thanks.
For the sake of cleanliness (and Walter's article on component
programming ;) ), is there a way to treat a file as an InputRange
of characters? I think this is quite a common use case.
On Sunday, 7 October 2012 at 19:32:12 UTC, Ali Çehreli wrote:
On 10/07/2012 1
"Lubos Pintes" wrote in message news:k4skro$n6q$1...@digitalmars.com... Hi,
There are at least two interesting GUI libraries for Windows: DGUI and
DFL. But there seems to be no sample code for DFL. Does someone have any
samples for DFL?
And yes, I know about DWT, but it is a bit heavy-weight.
On Sunday, 7 October 2012 at 19:42:18 UTC, Ali Çehreli wrote:
What version of Phobos are you using? The source code of Phobos
that comes with dmd 2.060 does not have the definition that you
have shown.
In any case, according to the docs, it is SList that allows
setting the front element, not
On Sunday, 7 October 2012 at 19:36:39 UTC, Charles Hixson wrote:
FWIW, I have absolutely NO knowledge of JSON, except that it's
something to do with web pages (well, and it's a language or
possibly a library).
I haven't actually used that project (I just saw the link and
figured it might hel
On 10/07/2012 12:07 PM, cal wrote:
The docs for std.container suggest I should be able to do this:
import std.container;
void main()
{
auto list = DList!int([1,2,3,4,5]);
list.front = 3;
}
But this does not compile (not a property list.front). I can't figure
out why this doesn't work though -
On 10/7/12, Lubos Pintes wrote:
> Hi,
> There are at least two interesting GUI libraries for Windows: DGUI and
> DFL. But there seems to be no sample code for DFL. Does someone have any
> samples for DFL?
> And yes, I know about DWT, but it is a bit heavy-weight.
>
There are older ones here:
http
On 10/07/2012 11:21 AM, Rene Zwanenburg wrote:
> Hi,
>
> To my understanding, The csv reader in std.csv is able to operate on any
> kind of input range.
The error message took me to the definition of the function. The
template constraints require that the element type of the range must be
a dch
On 10/07/2012 09:46 AM, Adam D. Ruppe wrote:
On Saturday, 6 October 2012 at 20:23:11 UTC, Charles Hixson wrote:
How does one generate documentation for private variables? ...
Other, I mean, than switching to DOxygen (which has it's own problems
with D).
check this out from the announce group:
gtkD ?
Hi,
There are at least two interesting GUI libraries for Windows: DGUI and
DFL. But there seems to be no sample code for DFL. Does someone have any
samples for DFL?
And yes, I know about DWT, but it is a bit heavy-weight.
The docs for std.container suggest I should be able to do this:
import std.container;
void main()
{
auto list = DList!int([1,2,3,4,5]);
list.front = 3;
}
But this does not compile (not a property list.front). I can't
figure out why this doesn't work though - the source for struct
DList(T)
Hi,
To my understanding, The csv reader in std.csv is able to operate
on any kind of input range. However I can only get it to work on
strings. Please take a look at the following line of code. Did I
make some mistake?
auto reader = csvReader!(Tuple!(int, int,
float))(someFile.byLine());
On Saturday, 6 October 2012 at 20:23:11 UTC, Charles Hixson wrote:
How does one generate documentation for private variables? ...
Other, I mean, than switching to DOxygen (which has it's own
problems with D).
check this out from the announce group:
http://forum.dlang.org/thread/k4sa0j$73k$1.
On 10/06/2012 11:56 PM, Jonathan M Davis wrote:
On Saturday, October 06, 2012 23:43:39 Charles Hixson wrote:
Well, DOxygen works ok if you don't use function contracts, and possibly
if you keep the entire program in one file. (It's been awhile since I
used it with D, so I don't quite remember t
Hi,
Just downloaded a snapshot of WindowsAPI bindings from dsource.org.
How can I generate .LIBs like gdi32.lib, for successful linking?
Thanks
On 10/7/12 5:15 AM, Jonathan M Davis wrote:
On Sunday, October 07, 2012 10:09:06 Russel Winder wrote:
Removal from a singly-linked list can be O(1) as well, it depends
whether you are deleting using an iterator in progress.
IIRC that dcollections' singly-linked list is like this, but
std.conta
On 2012-10-05 16:09, Ali Çehreli wrote:
This workaround makes the compiler happy:
void foo (inout(int)[] arr)
{
auto a = (inout int) { auto b = arr[0]; };
}
But probably not what you want. :/
IIRC, inout has bugs and incomplete implementation. I think this should
be in the bug database.
On Sunday, 7 October 2012 at 12:42:17 UTC, novice2 wrote:
and contain additional 2 trailing bytes
But, imho, this is "unproperly" to include something outside
struct in its size.
Strictly speaking, nothing special is included, just empty bytes
for optimization purposes. This behavior is sim
On Sunday, October 07, 2012 12:54:00 Russel Winder wrote:
> Is there a rationale for having multiple implementation of the same data
> structure, one in druntime and the other in std.container?
Which data structure are you takling about? I'm not aware of anything in
std.container being in druntim
and contain additional 2 trailing bytes
But, imho, this is "unproperly" to include something outside
struct in its size.
Thanx again.
Code align(1) struct ... { align(1): ... }
rescue me and return pre 2.060 behaviour
On Sun, 2012-10-07 at 02:15 -0700, Jonathan M Davis wrote:
[…]
> IIRC that dcollections' singly-linked list is like this, but
> std.container.SList definitely isn't. I'm not a big fan of singly-linked
> lists
> in the first place and tend to think that they're useless, but
> std.container's
>
On Sunday, 7 October 2012 at 10:45:40 UTC, novice2 wrote:
Thanx Maxim,
but what about
S2.sizeof (should be 6) = 8
S3.sizeof (should be 6) = 8
http://dpaste.dzfl.pl/57911897
Alignment attribute specifies members' alignment if it is inside
structure and structure alignment if it is placed out
Thanx Maxim,
but what about
S2.sizeof (should be 6) = 8
S3.sizeof (should be 6) = 8
On Sunday, October 07, 2012 10:09:06 Russel Winder wrote:
> Removal from a singly-linked list can be O(1) as well, it depends
> whether you are deleting using an iterator in progress.
IIRC that dcollections' singly-linked list is like this, but
std.container.SList definitely isn't. I'm not a big
On Sat, 2012-10-06 at 19:42 -0700, Jonathan M Davis wrote:
[…]
> singly-linked lists and doubly-linked lists are completely different beasts.
> A
> singly-linked list can't do it sanely, because it has to traverse the list to
> find the previous node so that it adjust the links. A node in a doub
On Sunday, October 07, 2012 10:42:49 Timon Gehr wrote:
> On 10/07/2012 10:35 AM, Jonathan M Davis wrote:
> > On Sunday, October 07, 2012 10:25:41 Tommi wrote:
> >> The following compiles, which I'm pretty sure must be a bug,
> >> right? Just checking to be sure I won't be polluting the bug
> >> tra
On 10/07/2012 10:35 AM, Jonathan M Davis wrote:
On Sunday, October 07, 2012 10:25:41 Tommi wrote:
The following compiles, which I'm pretty sure must be a bug,
right? Just checking to be sure I won't be polluting the bug
tracker.
void main()
{
auto f = (int i) {};
static assert (!is(
On Sunday, October 07, 2012 10:25:41 Tommi wrote:
> The following compiles, which I'm pretty sure must be a bug,
> right? Just checking to be sure I won't be polluting the bug
> tracker.
>
> void main()
> {
> auto f = (int i) {};
> static assert (!is(f == function)); // should fail
>
The following compiles, which I'm pretty sure must be a bug,
right? Just checking to be sure I won't be polluting the bug
tracker.
void main()
{
auto f = (int i) {};
static assert (!is(f == function)); // should fail
static assert (!is(f == delegate));
}
On Sunday, October 07, 2012 09:27:31 denizzzka wrote:
> I've got a situation that debug information should be placed into
> the class via the constructor. Therefore, when used -debug
> constructor has another arguments list, and its need debug {}
> else {} for ctor calling.
Which is fine. It's jus
On Sunday, 7 October 2012 at 01:20:49 UTC, Jonathan M Davis wrote:
On Saturday, October 06, 2012 23:49:23 denizzzka wrote:
I am on dmd 2.060
debug {} else {} was not obvious for me - I thought that debug
is
a kind of qualifer.
I wouldn't expect you to try either version(debug) or debug {}
35 matches
Mail list logo