"Peter Alexander" <peter.alexander...@gmail.com> wrote in message 
news:vicaibqyaerogseqs...@forum.dlang.org...
>>
>> It's defined. The operating system protects you. You get a segfault on 
>> *nix and
>> an access violation on Windows.
>
> False.
>
> [snip]
>
> You only get an error if there is a memory access involved (vtable, member 
> data etc.)
>

It _is_ defined, you get an access violation whenever there's a dereference. 
Yes, you can call some types of member functions without any dereferences, 
but this is alse well defined and sometimes quite useful. 


Reply via email to