scalar

Convenience function to pull a double value out of R. Only used when embedding an R interpreter inside a D program.

Examples

double x = scalar("rx"); // Copies rx from R into x in D
double x = scalar!double("rx"); // Same
double x = "rx".scalar!double; // Same

Meta