POV-Ray : Newsgroups : povray.advanced-users : Classes/containers in sdl? : Classes/containers in sdl? Server Time
28 Apr 2024 10:52:17 EDT (-0400)
  Classes/containers in sdl?  
From: INVALID ADDRESS
Date: 15 Nov 2016 19:49:49
Message: <672115525.500949702.234747.gdsHYPHENentropyAThotmaolDOTcom@news.povray.org>
Hello,

It has been a long time since I have delved into SDL and my slowly rusting
mind could use a refresher on something.

Is it possible to create "objects" like classes or generally any named
container having properties in SDL other than to use an array?

I am not looking for the stack vs heap aspects of classes and structs, only
the POCO/DTO aspects.

Am I stuck hacking it by using strings in an array and string parsing to
mimic this, or does someone have a better way?

I am just looking for a clean way to have a chunk of information that has
properties which may be of multiple types wherein its internal properties
are in he same scope/are united and "owned" by that object, without
emulating this using multiple arrays whose contents are correlated only by
sharing indices...

Ian


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.