Re: Casting away immutability

2015-09-04 Thread jqb via Digitalmars-d-learn
On Thursday, 3 September 2015 at 13:28:54 UTC, Sergei Degtiarev 
wrote:

[...]
Agree, however, memory obtained with mmap(..., PROT_READ, ..); 
is essentially read-only and any attempt to write to it will 
cause immediate crash with segmentation violation. It would be 
very desirable in this case to return something that could be 
cast to immutable(type)[] but not type[].

This is what I tried to find out. Thank you for the help.


It can still change by writing (in the same or another process) 
to the file via another file descriptor. Of course the results 
are non-deterministic in that case, so it doesn't much matter 
whether the compiler assumes the data to be immutable or not.


Re: Working Windows GUI library?

2015-09-03 Thread jqb via Digitalmars-d-learn

On Thursday, 3 September 2015 at 16:49:51 UTC, BBasile wrote:

[...]
I don't know what you meant by 'accessible' [...]


https://en.wikipedia.org/wiki/Computer_accessibility

Accessibility is even more important than native language support.