Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!rex!uflorida!kluge!serss0.fiu.edu From: acmfiu@serss0.fiu.edu (ACMFIU) Newsgroups: comp.sys.apple2 Subject: ML subroutines (passing parameters in ML) Message-ID: <3397@kluge.fiu.edu> Date: 24 Apr 91 04:24:38 GMT Sender: news@kluge.fiu.edu Organization: Florida International University, Miami Lines: 11 i'm curious as to how some of you pass parameters to ML routines in your ML code. for instance, let's say you had a routine that took two numbers and returned the answer. how would you pass the two routines. i've basically passed values two ways: 1) put them in some dummy variable, 2) if the subroutine required many parameters, then i'd just pass the address of where to find the data. i'm just looking for efficiency and readability. #1 above is definitely not readable. but #2 is. does anyone pass parameters via the stack? albert