Skip to content

Commit

Permalink
A symbol can never conflict with itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 23, 2011
1 parent 2882b8e commit e46af01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ModuleLoader.pm
Expand Up @@ -55,6 +55,9 @@ knowhow ModuleLoader {
if !%known_symbols{$sym} {
($target.WHO){$sym} := $_.value;
}
elsif ($target.WHO){$sym} =:= $_.value {
# No problemo; a symbol can't conflict with itself.
}
else {
pir::die("Merging GLOBAL symbols failed: duplicate definition of symbol $sym");
}
Expand Down

0 comments on commit e46af01

Please sign in to comment.