Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Chapel118.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// This module is designed to provide some backwards compatibility
// with Chapel 1.18 for arkouda.
//
module Chapel118 {
//
// TODO: Would be cool / smart if Chapel code could query compiler
// version number directly to avoid needing this param and the
// last resort overload below... See Chapel issue #5491.
//
config param version118 = false;

// If `version118` is set, forward .contains() on a domain to
// .member()
//
proc _domain.contains(i) where version118 {
return this.member(i);
}

//
// This is a trick to provide a hint to someone using 1.18 (or
// earlier) to throw the -sversion118 flag without breaking 1.19
//
pragma "last resort"
proc _domain.contains(i) {
compilerError("Couldn't find <domain>.contains(:"+i.type:string+")\n"+
"Maybe try recompiling with -sversion118?");
}
}
1 change: 1 addition & 0 deletions MultiTypeSymbolTable.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module MultiTypeSymbolTable
use ServerErrorStrings;

use MultiTypeSymEntry;
use Chapel118;

// symbol table
class SymTab
Expand Down