@Endre *******
I’m not a lawyer, nor an expert in Thai laws, but I’m not sure a listing in the royal gazette would be needed. The requirement for incoming foreigners to write a TM6 (actually previously everyone including Thai nationals) already existed. The TDAC is just a replacement for the previous TM6 arrival/departure card. It’s an electronic version rather than paper.
A few years ago they stopped needing air travellers of all nationalities to need to fill one out and more recently for most border points. However my guess is that law still exists but just wasn’t enforced.
Depending on the actual wording of that law the difference of filing an electronic version (called TDAC) rather than a paper TM6 may not need an amendment.