Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

RECORD VS CLASS

Name: ­ 2009-03-14 9:45

entry-level here, forced to work in Delphi 5 (i know)

so i have got a working program that uses records that use pointers to point to the next record each
and i've got a program that uses classes

would it be SENSEFULL trying to replace the records from the first program with a class that does the exact same thing, which is storing a single dataset (e.g. a name) and pointing to the next instance of the class to create a linear database?

Name: Anonymous 2009-03-14 9:56

So you're making a linked list?
I don't think there would be any real difference in using a class as opposed to records(except for methods being inside/outside of the class/record). You could if you wanted to, but if you already have a working program, I'd leave it.


You are of course allowed to ignore my advice, since I study EE

Name: Anonymous 2009-03-14 9:56

it would be SENSEFULL

Name: Anonymous 2009-03-14 9:58

s/record/class/g

Great, now your linked list uses n*4bytes more storage than before, and exactly what did you gain?

What do you even seek to gain? What is your use case? Why did you even post this here? You didn't expect REAL help, did you? Hahaha, you poor soul. Enjoy getting fired sometimes between now and the next three weeks. But don't come here crying then, you hear me?

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

Name: Anonymous 2009-03-14 9:59

>>2
exactly, a linked list. the methods that classes can use are not really relevant in this example, for they are not needed.

Name: Anonymous 2009-03-14 10:01

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

BRO FIST

IF YOU DONT POST THIS TO 5 BROS THEN YOU ARENT A BRO

Name: Anonymous 2009-03-14 10:03

>>4
fyi: student, writing his exam in about a week, there is no USE case. just trying to figure out how to create a class that uses pointers in any way.

Name: Anonymous 2009-03-14 10:25

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

BRO FIST

IF YOU DONT POST THIS TO 5 BROS THEN YOU ARENT A BRO

Name: Anonymous 2009-03-14 11:38

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

LAMBDA FIST

IF YOU DONT POST THIS TO 5 SEPPLERS THEN YOU ARENT A LAMBDA KNIGHT

Name: Anonymous 2009-03-14 11:45

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

JAVA FIST

IF YOU DONT POST THIS TO 5 COWORKERS THEN YOU ARENT AN ASSET TO THE ENTERPRISE

Name: Anonymous 2009-03-14 12:03

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

HASKELL FIST

IF YOU DONT POST THIS TO 5 NOMADS THEN YOU ARENT A DEAD DOG

Name: Anonymous 2009-03-14 12:32

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

ANUS FIST

IF YOU DONT HAX THIS INTO 5 ANUSES THEN YOU ARENT REACHING SATORI

Name: Anonymous 2009-03-14 12:34

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

FISH FIST

IF YOU DONT FISH THIS INTO FISH FISHES THEN YOU FISH FISHING FISH

Name: Anonymous 2009-03-14 12:36

...................__
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'...')
.........\.................'...../
..........''...\.......... _.·´
............\..............(

FUCK YOU

IF YOU DONT FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK

Name: Anonymous 2009-03-14 13:42

>>9-14
I lol'd, which I am sad to admit

Name: Anonymous 2009-03-14 16:50

function Cons(Car: ^ListELem, Cdr: ^List) : ^List

Name: Anonymous 2009-08-17 0:44

Lain.

Don't change these.
Name: Email:
Entire Thread Thread List