Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring Type Hints Library user types

load "typehints.ring"

import mypackage

test()  { main([:one,:two,:three]) }

myclass func test() {
        see "Testing User Types!" + nl
        return new myclass
}

package mypackage {
        public class myclass {
                public static void func main(list args) {
                        see "welcome" + nl
                        see args
                }
        }
}
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #Type #Hints #Library #user #types
ADD COMMENT
Topic
Name
8+2 =