Creating user classes #8

Open
opened 2025-06-04 15:27:53 +03:00 by sergeych · 1 comment
Owner
No description provided.
sergeych added spent time 2 hours 2025-06-04 15:28:05 +03:00
Author
Owner

class Name(val x,private var y,z)

  • z visible in the class initializer
  • y to the class instances
  • x is public

struct(x,y)

same as

class(var x,var y)

We do it with ObjClass providing initializer and memebers and ObjInstance with class context.

class Name(val x,private var y,z) - z visible in the class initializer - y to the class instances - x is public struct(x,y) same as class(var x,var y) We do it with ObjClass providing initializer and memebers and ObjInstance with class context.
sergeych started working 2025-06-04 15:30:56 +03:00
sergeych canceled time tracking 2025-06-05 12:31:34 +03:00
sergeych added spent time 2 hours 2025-06-05 12:32:51 +03:00
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Total Time Spent: 4 hours
sergeych
4 hours
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SergeychWorks/lyng#8
No description provided.