Jump to content

User:Mike92591/CoPL, references

From Wikipedia, the free encyclopedia

Reference (computer science)

regular function generic
C type * return_type (*...)(parameters) void *
C++ type * return_type (*...)(parameters) void *
Pascal ^type
Delphi(fpc) ^type function«(parameters)»:return_type
or
procedure«(parameters)»
pointer
dereference address of dynamic allocation dynamic deallocation
C *name &name pointer = malloc(size); free(address);
C++ *name &name pointer = malloc(size);[a]
or
pointer = new type;
free(address);
or
delete address;
Pascal name^ new(pointer) dispose(address)
Delphi(fpc) name^ @name new(pointer) dispose(address)

^a no implicit conversion from generic pointer to typed pointer