trick to avoid limits on run.dlang.io all compilers
matheus
matheus at gmail.com
Wed Jan 31 20:33:26 UTC 2024
On Wednesday, 31 January 2024 at 19:54:24 UTC, Steven
Schveighoffer wrote:
> ...
Nice trick indeed, I'd make just a little change for:
import std;
void main(){
static if(__VERSION__ < 2100) {
return;
}
// Your code here
writeln("Hello D");
}
By the way running this returns:
2.079.1 to 2.085.1: Failure with output:
-----
onlineapp.d(1): Error: module `std` is in file 'std.d' which
cannot be read
import path[0] =
/path/to/dmd.linux/dmd2/linux/bin64/../../src/phobos
import path[1] =
/path/to/dmd.linux/dmd2/linux/bin64/../../src/druntime/import
-----
2.086.1 to 2.099.1: Success and no output
Since 2.100.2: Success with output: Hello D
Those errors on 2.079.1 to 2.085.1 are regarded to the
configuration of those compilers?
Matheus.
More information about the Digitalmars-d
mailing list