GithubHelp home page GithubHelp logo

goby-lang / api.doc Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 2.0 125 KB

API Documentation for goby language

Home Page: https://goby-lang.github.io/api.doc/

Go 56.25% HTML 36.81% CSS 6.70% JavaScript 0.24%
goby api documentation documentation-tool documentation-generator goby-language

api.doc's People

Contributors

adlerhsieh avatar st0012 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

api.doc's Issues

Undefined method on `attr_reader` should not cause panic

 class Foo
   attr_reader("bar")
 end

 a = Foo.new
 a.bar = "fuz"
  • Ruby:

13sandbox.gb:9:in <main>': undefined method bar=' for #Foo:0x007ff1f610dac0 (NoMethodError)

  • Goby:

Internal Error: interface conversion: vm.Object is *vm.RClass, not *vm.RObject
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject [recovered]
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject [recovered]
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject [recovered]
panic: interface conversion: vm.Object is *vm.RClass, not *vm.RObject


But the following outputs as expected:

 class Foo
 end

 a = Foo.new
 a.bar = "fuz"
  • Goby:

17sandbox.gb:6:in <main>': undefined method bar=' for #Foo:0x007ff0cf118b50 (NoMethodError)

  • Ruby:

goby 1 $goby 17sandbox.gb
UndefinedMethodError: Undefined Method 'bar=' for

Panic on including two modules twice

The following encounters panic runtime: goroutine stack exceeds 1000000000-byte limit fatal error: stack overflow while it works on Ruby:

module Foo
  def ten
    10
  end
end

module Bar
  def twenty
    20
  end
end

class Baz
  include(Bar)
  include(Foo)
end

class Baz
  include(Bar)
  include(Foo)
end

But the following works both on Goby and Ruby:

module Foo
  def ten
    10
  end
end

class Baz
  include(Foo)
end

class Baz
  include(Foo)
end

The following works as well on Goby and Ruby:

module Foo
  def ten
    10
  end
end

module Bar
  def twenty
    20
  end
end

class Baz
  include(Bar)
  include(Foo)
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.