comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: brain twister

brain twister
type: item
description: Okay, enough ideology for one week. Here are some brain twisters for you. See if you can decide what the output should be without running it. In each example I give the commands to paste into the command line, ending with some main-level commands to enter. ----- Example 1 .comp pro test1, x, y help, x, y end a = dindgen(5) test1, a, a ----- Example 2 .comp function test2, x return, x end a = dindgen(5) (test2(a))[2] = -2 print, a These were a bit of a surprise for me! Craig -- ------------------------------------------------------------ -------------- Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response ------------------------------------------------------------ --------------
creator: Craig Markwardt
date: 2000-12-08T16:31:51-00:00