Wiki

root/cobra/trunk/Tests/100-basics/033j-get-property-instance.cobra

Revision 2636, 320 bytes (checked in by Charles.Esterbrook, 7 weeks ago)

JVM back-end progress.
credit:hopscc

  • Property svn:eol-style set to native
Line 
1#.require. jvm
2namespace Test
3    class Test
4        def main
5            is shared
6            p = System.getProperties
7            #p = System.properties # above as a prop - codegen NYI
8
9            #nl as String = p['line.separator'] # indexer NYI p.getProperty('')
10            nl as String? = p.getProperty('line.separator')
11            print '_', nl, '_'
12            CobraCore.noOp(nl)
Note: See TracBrowser for help on using the browser.