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 S

Re: D Snippet: Reading a file to standard output on Windows Operating System. (FileScan.d)

2023-12-08 Thread BoQsc via Digitalmars-d-learn
On Wednesday, 6 December 2023 at 14:56:50 UTC, BoQsc wrote: As of recent observation the `line` in the previous implementation seem to recognise **\r** as default terminator. Making `writeln("|" ~ line ~ "|");` not possible. By correcting terminator and disabling it on `byLine` function it is

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) { au