home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.cad.cadence
- Path: sparky!uunet!darwin.sura.net!mlb.semi.harris.com!rtfm.mlb.fl.us!john
- From: john@rtfm.mlb.fl.us (John Blasik)
- Subject: Re: edge skill questions
- Message-ID: <1992Jul22.054233.13331@rtfm.mlb.fl.us>
- Summary: sstatus setinfix nil
- Organization: We don't need no stinkin' batches!
- References: <lyndon.711657463@angelo> <1992Jul21.074427.5381@inmos.co.uk>
- Date: Wed, 22 Jul 1992 05:42:33 GMT
- Lines: 30
-
- >|>
- >|> procedure( PsvCheckType(n type)
- >|> procedure( PsvDoCheck('var \"type\") t)
- >|> PsvDoCheck(n)
- >|> )
- >
- >Try this:
- >
- >procedure(PsvCheckType(n type)
- > apply('procedure list(list('PsvDoCheck 'var type) t))
- > PsvDoCheck(n)
- >)
-
- I don't know why you would want to define such a function.
- In anycase, why not use a macro, that's what they're there for!
-
- (mprocedure PsvCheckType(args)
- (list (list 'lambda (cons 'var (cddr args)) t) (cadr args))
- )
-
- apply('PsvCheckType '(PsvCheckType x "l"))
- => ((lambda (var "l") t) x)
-
- This way, there's no named function to be re-defined.
-
-
- -- john
-
-
-
-