safeD

Minas Mina minas_mina1990 at hotmail.co.uk
Sat Mar 9 12:19:09 PST 2013


On Saturday, 9 March 2013 at 19:47:12 UTC, Mark T wrote:
>    Thanks for the input - but where is SafeD defined? Is there 
> a compiler switch?
> I haven't looked at D in a while, it was just too big for ARM 
> Cortex M, smaller PowerPC and similar targets - a google search 
> got me to the SafeD topic.

No, you don't need to compiler switch. What you need is to mark 
functions as @safe. E.g:

@safe void safe_foo()
{
}

If you don't mark them they are considerded @system.


More information about the Digitalmars-d mailing list