~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to base/pkg/types.jl

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-11-17 19:32:52 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20131117193252-tkrpclguqqebqa35
Tags: 0.2.0+dfsg-3
testsuite-i386.patch: loosen the numerical precision for yet another test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
module Types
2
2
 
3
 
export VersionInterval, VersionSet, Requires, Available, Fixed,
4
 
       merge_requires!, satisfies, @recover
5
 
 
 
3
export VersionInterval, VersionSet, Requires, Available, Fixed, merge_requires!, satisfies
6
4
import Base: show, isempty, in, intersect, isequal, hash, deepcopy_internal
7
5
 
8
6
immutable VersionInterval
88
86
# Free could include the same information too, it just isn't
89
87
# required by anything that processes these things.
90
88
 
91
 
macro recover(ex)
92
 
    quote
93
 
        try $(esc(ex))
94
 
        catch err
95
 
            show(err)
96
 
        end
97
 
    end
98
 
end
99
 
 
100
89
end # module