繁體 简体

Q&A: CCL and pointers.

Question
Why doesn’t CCL have pointers?

Synopsis
CCL and pointers.

Solution
They are not needed.
The main reasons for pointers in C concern the structure of arrays, and passing function parameters by reference. CCL uses conventions similar to Fortran for these functions, allowing hidden structs on function stacks that provide information about variables and arrays passed by reference. CCL takes this approach because it provides more extensive parameter checking at runtime, a fundamental and conspicuous problem with C.

30051 新竹市經國路二段160號9F-8
Tel : 03-5359299  Fax: 03-5358908
統編: 28521213

光學軟體設計領導者

© 2018 All rights reserved. Setup by Eidea