Next Previous Up Top Contents Index

2.4 Naming and mapping conventions

2.4.5 Mapping C structure fields onto Dylan slot names

Because slot names are not in a separate name space in Dylan, the names of C structure fields will have the suffix -value added to form the name of the Dylan accessor function. For example, the C statement:

   pt->x = x;

becomes in Dylan:

   pt.x-value := x;

There is not any attempt to append ? to the names of predicate functions since it is not obvious exactly which functions that should apply to. The Dylan convention of *...* for global variables is not relevant since there are no global variables involved.


C FFI and Win 32 Reference - 31 MAR 2000

Next Previous Up Top Contents Index