radon-project / radon

The Radon Programming Language
https://radon-project.github.io
GNU General Public License v3.0
23 stars 2 forks source link

Direct calling imported module in `help()` is not working. #164

Closed Almas-Ali closed 3 months ago

Almas-Ali commented 4 months ago

Describe the bug When I use import math and run help on math help(math) is not working as expected.

Expected behavior This should collect everything in that file and display output. The file can contain anything. var, fun, class or all combinations. avoid imported modules. Just follow in-script data.

Screenshots or Code snippets

import math
help(math) # should work fine

Random script:

# Importable script
# filename: modx.rn

import math
import array
import system

var anything = null

fun NewFun() {
    "New function"
}

class Some {
    "Some class"

    # has some body
}

# New script

import modx

help(modx) # this should only return internal implementations only, not imported modules codes.
``