Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function Pointers?
#5
if you think you need function pointers.  program in c++.  otherwise wait until this dialect of basic.  develops more oop-like features.

if this is too much to take.  switch to freebasic.  which supports oop more or less like microsoft visual basic.

however if you really need the "advanced" graphics and sound.  that qb64 phoenix provides.  you need to look at what could require function pointers.  try to do it in c++ or other language.  because someone who thinks he/she needs function pointers.  will also ask for variable number of subprogram parameters.  multiple return values from function.  function and operator overloading.  so on and so forth.  as i've said, oop-like features.

it could be handled creatively.  by writing one subprogram.  which has select case... end select to go through possible "mini-methods."

or handle that selection in the "main program."  with many custom subprograms to choose from.  the difference is that there's no need.  not even in c/c++ to use pointers for it.  just integers or maybe key string values.  to select what should be called. (shrugs)
hopeless addict of dying in the first few levels of two particular console viewport "roguelike" games
Reply


Messages In This Thread
Function Pointers? - by BlameTroi - 02-19-2026, 08:01 PM
RE: Function Pointers? - by ahenry3068 - 02-19-2026, 08:17 PM
RE: Function Pointers? - by luke - 02-19-2026, 08:50 PM
RE: Function Pointers? - by BlameTroi - 02-20-2026, 12:44 AM
RE: Function Pointers? - by hsiangch_ong - 02-20-2026, 01:48 AM
RE: Function Pointers? - by BlameTroi - 02-20-2026, 05:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  function "_ARCSEC()" is wrong? BSpinoza 16 3,432 10-31-2023, 04:23 PM
Last Post: SMcNeill
  TYPE and CONST within SUB/FUNCTION TerryRitchie 9 1,953 07-11-2023, 01:22 AM
Last Post: bplus
  Query to function _InputBox$ Petr 10 2,042 03-31-2023, 09:53 PM
Last Post: mnrvovrfc
  instr function in reverse ??? doppler 3 751 02-10-2023, 02:33 PM
Last Post: doppler
  Variable as a reference or value to a function Kernelpanic 22 4,260 08-08-2022, 07:41 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)