From 00d1cb7b6feadcb2192360e7c38e10b1327f92f7 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Fri, 3 Dec 2010 17:53:53 -0800 Subject: [PATCH] Add another function signature example The 'constants' section was removed because the interpreter flags are now documented and there do not appear to be other constants to document. --- docs/embed.pod | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/docs/embed.pod b/docs/embed.pod index 1282e304f1..51366be96c 100644 --- a/docs/embed.pod +++ b/docs/embed.pod @@ -81,10 +81,6 @@ Parrot's unsigned integer numeric type. =back -=head2 Constants - -Not documented yet. - =head2 Function signatures What is a function signature? It is a string which represents the calling and @@ -102,15 +98,17 @@ the datatypes on the right are the datatype being returned. Here are some example function signatures and what they mean: - INN->N In: Integer, two Numerics Out: Numeric - P->S In: PMC Out: String - PiP->S In: PMC (method call) Out: String - NN->N In: Two Numerics Out: Numeric - I->I In: Integer Out: Integer - I->N In: Integer Out: Numeric - Pi-> In: none (method call) Out: none - ->I In: none Out: Integer - -> In: none Out: none + INN->N In: Integer, two Numerics Out: Numeric + SIN->S In: String, Integer, Numeric Out: String + P->S In: PMC Out: String + PiP->S In: PMC (method call) Out: String + NN->N In: Two Numerics Out: Numeric + I->I In: Integer Out: Integer + I->N In: Integer Out: Numeric + N->P In: Numeric Out: PMC + Pi-> In: none (method call) Out: none + ->I In: none Out: Integer + -> In: none Out: none TODO: Multiple return values? Spaces?