Re: pegged: non@safe semantic actions

2023-12-08 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, December 8, 2023 10:13:21 AM MST Dmitry Ponyatov via Digitalmars-d- learn wrote: > What's wrong with using non@safe actions which creates and > modifies some external objects? > > ```D > class Layer { > int index; > string name; > this(int index, string name) { > > class

pegged: non@safe semantic actions

2023-12-08 Thread Dmitry Ponyatov via Digitalmars-d-learn
What's wrong with using non@safe actions which creates and modifies some external objects? ```D class Layer { int index; string name; this(int index, string name) { class SignalLayer : Layer { class UserLayer : Layer { class PCB { Layer[] layer; PT _deflayer(PT)(PT p) {