Re: Are there plans to make mono D work with current version?

2017-01-25 Thread James Buren via Digitalmars-d-learn

On Wednesday, 25 January 2017 at 22:37:30 UTC, Lucas wrote:
Looking forward to get back to programming in D, I went to set 
up to my favorite environment: Mono D. After lots of download, 
Mono, Gtk#, MSBuild tools, VS 13 commnunity... I get an error 
saying it won't load my D language binding because my current 
Mono version is higher than D language binding's supports.


Are there any plans to make it work in the current version or 
any workaround or should I really downgrade everything?


I'm asking this here because it's likely to the author of the 
mono D read that forum (thank you very much for the extension, 
by the way)


Most likely, you are dealing with this issue: 
https://github.com/aBothe/Mono-D/issues/648


MonoDevelop 5.x is the latest version supported. They haven't 
gotten around to making it compatible with anything newer due to 
various reasons, mainly it being that MonoDevelop has  completed 
changed the plugin API again.


If you really need Mono-D, you are stuck with MonoDevelop 5.x for 
now.




Re: DMD Refuses to Compile Multiple Source Files

2017-01-17 Thread James Buren via Digitalmars-d-learn
Import the source file containing the external function instead 
of writing that prototype. It should compile then.




Re: Variable-Length Bit-Level Encoding

2016-11-12 Thread James Buren via Digitalmars-d-learn

On Saturday, 12 November 2016 at 19:13:13 UTC, Nordlöw wrote:
Does anybody have a suggestion for an encoder that is more 
suitable for real-world values that are, for instance, normally 
distributed?


I don't recall the name, but there is an algorithm for encoding 
data of an arbitrary number of bytes/bits into a stream of 
octets. It reserves the MSB of each octet for use as a marker. If 
it is set to 1, then there are yet more bits to read. If it is 
set to 0, then this is the last group of bits. This enables each 
octet to carry 7 bits at a time, while allowing you to encode 
data of any bit size into an octet stream. You just need to break 
your data down into groups of 7 bits.




Re: isCopyable and isAssignable

2016-10-09 Thread James Buren via Digitalmars-d-learn

On Sunday, 9 October 2016 at 07:23:05 UTC, Nordlöw wrote:

Now that we have isCopyable from

https://github.com/dlang/phobos/pull/4706

can somebody briefly outline when something fulfills 
`isCopyable` but not `isAssignable` and vice versa?


I would imagine that an intermediate value, or other lvalue, may 
be copyable, but not assignable.