OOP classes not working on Windows – lib folder empty

24 views
Skip to first unread message

Paolino Rappa

unread,
Mar 26, 2026, 10:15:29 AM (8 days ago) Mar 26
to The Ring Programming Language

Hello everyone,

I’m experiencing an issue with Ring on Windows 11 24H2. Using the official 1.26 (64-bit, ~447 MB) releases, my programs with classes and see statements inside classes do not produce output.

Details:

  • Installation folder: C:\Ring
  • Contents of lib: practically empty (ring.lib, ring.exp, ringstatic.lib) → missing .rlib runtime libraries required for OOP
  • Tested with:
    • VS Code (via Code Runner)
    • RingNotepad
  • Symptom: any see after a class definition does not appear
  • Minimal example:
see "PROGRAM STARTED" + nl

class MyDate
    day = 0
    month = 0
    year = 0
    func init
        return self
    func SetDate(cDate)
        a = split(cDate, "/")
        if len(a) != 3
            return false
        end
        d = number(a[1])
        m = number(a[2])
        y = number(a[3])
        self.day = d
        self.month = m
        self.year = y
        return true
    end
end

d = new MyDate
d:SetDate("25/03/2026")
see d:GetDate() + nl
see string(d.day) + " " + string(d.month) + " " + string(d.year) + nl
see "PROGRAM END" + nl

Current output: 
PROGRAM STARTED

Nothing else; the see statements inside the class do not appear.

Actions I’ve already tried:

  • Reinstalling as Administrator
  • Changing the installation folder (C:\Users\Officina\Ring)
  • Disabling antivirus / Windows Defender during installation
  • Different versions (1.25, 1.26) from both the official website and GitHub

Question:
Is there a Windows package, official or unofficial, that includes all .rlib runtime libraries for OOP ready to use? Or is the only solution to compile Ring from source on Windows or use WSL/Linux?

Thank you very much for any guidance!




Bert Mariani

unread,
Mar 26, 2026, 10:39:19 AM (8 days ago) Mar 26
to The Ring Programming Language
Hello Paolino

Class goes at the end, after  your Start and Func()

=====================================
load "stdlibcore.ring"  // for split()


see "PROGRAM STARTED" + nl

d = new MyDate
d.SetDate("25/03/2026")  // was :
see d.GetDate() + nl          // was :

see string(d.day) + " " + string(d.month) + " " + string(d.year) + nl
see "PROGRAM END" + nl

class MyDate
    day = 0
    month = 0
    year = 0
    func init
        return self
    func SetDate(cDate)
        a = split(cDate, "/")
        if len(a) != 3
            return false
        end
        d = number(a[1])   // Line 22 Error (R31) : Trying to destroy the object using the self reference

        m = number(a[2])
        y = number(a[3])
        self.day = d
        self.month = m
        self.year = y
        return true
    end
end

Reply all
Reply to author
Forward
0 new messages