  Struct: Struct
  Array: Array
 
-module.exports = TDS
+if GLOBAL?
+ module.exports = TDS
+else
+ window.TDS = TDS
 
 
 ###

  get: (i) ->
   if i < 0 or i >= @length
    null
   new @struct null, @views, i

  set: (i, val) ->
   if i < 0 or i >= @length

    return off

 for k, i in keys
  Class[k.toUpperCase()] = i
  code = k.charCodeAt 0
  tcase = k
  if code <= 122 and code >= 97
