[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Why was -index()- dropped?

From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: Why was -index()- dropped?
Date   Fri, 25 Jan 2008 15:34:24 -0500

This thread has clarified for me something (almost) completely unrelated. For years I've been wondering what "stroke" has to do with string variables being acceptable; only just now do i realize that "strok", as is "markout varlist, strok" is short for "string ok".


-Nick Winter

Ronan Conroy wrote:

On 25 Jan 2008, at 15:06, William Gould, StataCorp LP wrote:

So we will quietly put -index()- back and make it work again.

Thank goodness! While I can easily imagine using a search-and-destroy text editor to replace all occurrences of 'strpos(' with 'index(' in every do-file on my machine, it's not safe to do this the other way around, and I wasn't looking forward to inspecting every occurrence of 'index(' before giving the go ahead to a replace.

I agree that strpos is far more user-readable, but for us old-timers (I realise I have my Stata 3 installation disks on the shelf) it will be hard to shake the index habit.

P Before printing, think about the environment
Ronan Conroy
[email protected]
Royal College of Surgeons in Ireland
Epidemiology Department,
120 St Stephen's Green, Dublin 2, Ireland
+353 (0)1 402 2431
+353 (0)87 799 97 95

* For searches and help try:
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  [email protected] e
University of Virginia w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index