Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Methods in types
#7
(01-22-2025, 05:38 AM)mcalkins Wrote: You're talking about classes? A class is a udt that can have member functions.

I know what classes are. I'm not thinking of them right now (inheritance and polymorphism are whole different cans of worms.) I can simulate the behavior I'm thinking of just by having a collection of SUBs that can be called with the type variable passed as an argument. But it would be handy sometimes to have the shorthand way to get the job done.
It's not the having, it's the doing.
Reply


Messages In This Thread
Methods in types - by bobalooie - 01-17-2025, 01:02 AM
RE: Methods in types - by mcalkins - 01-22-2025, 05:38 AM
RE: Methods in types - by bobalooie - 01-30-2025, 07:45 PM
RE: Methods in types - by hsiangch_ong - 01-22-2025, 05:50 AM
RE: Methods in types - by James D Jarvis - 01-25-2025, 04:36 PM
RE: Methods in types - by hsiangch_ong - 01-26-2025, 12:26 AM
RE: Methods in types - by bplus - 01-26-2025, 12:08 AM
RE: Methods in types - by Pete - 01-30-2025, 08:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Arrays inside Types? Ikerkaz 11 300 5 hours ago
Last Post: Kernelpanic
  C++ types > QB64 types: do we have an equivalent QB64PE page? madscijr 5 1,119 06-01-2024, 03:44 AM
Last Post: grymmjack
  Declaring Functions AS TYPEs TerryRitchie 14 2,824 08-17-2023, 12:41 AM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)