On Saturday, 20 October 2018 at 15:40:07 UTC, karis njiru wrote:
Hi. Am a computer science student from Kenya and decided to use
D for my class project on Principles of Programming Languages.
Am having a lot of fun with D but have come across an issue. I
have been using Visual D for the past 2
Hello
While trying to make a 1:1 binding to a C/C++ lib, I got the
following issue:
I only have access to the .h header file, and in there I have
this:
class someclass {};
class otherclass : public someclass {};
When trying to translate that header file to D, I ended with the
following co
On Wednesday, 6 February 2019 at 02:36:33 UTC, evilrat wrote:
No surprises here, D can only inherit from virtual C++ classes
and that message says exactly that(class must have at least one
virtual method).
This someclass looks for me as just a strange design decision,
if it's not just a POD
Hi, in one of my projects I have to get a slice from a BitArray.
I am trying to achieve that like this :
void foo(BitArray ba)
{
auto slice = ba[0..3]; // Assuming it has more than 4 elements
}
The problem is that I get an error :
"no operator [] overload for type BitArray".
Is there any o
On Wednesday, 21 December 2016 at 09:14:04 UTC, Eugene Wissner
wrote:
The problem is BitArray keeps multiple elements in one byte.
You can't return just three bits but in the best case one byte
with 8 elements.
What could be done some internal range could be returned that
gives access to
On Wednesday, 21 December 2016 at 11:49:06 UTC, Ilya Yaroshenko
wrote:
On Wednesday, 21 December 2016 at 09:08:51 UTC, Ezneh wrote:
Hi, in one of my projects I have to get a slice from a
BitArray.
I am trying to achieve that like this :
void foo(BitArray ba)
{
auto slice = ba[0..3]; // Ass