1. Re: DISCARD
- Posted by Hawke <mdeland at NWINFO.NET> Sep 23, 1998
- 370 views
Pete Eberlein wrote: > [discard] >Anyone ever tried to throw away a sequence using >an if statement? Let me forewarn ya - it ain't >gonna make ex.exe happy. *snicker* i hadn't thought about that aspect of discard, and can begin to see a use here... >A discard procedure would be a welcome addition to >the language... >simply have the discard procedure pop off and free >the last object on the stack. No type_checking, >boolean test or possible code jump would be performed. >In a tight loop you might see a difference. thanks to this, i can now understand the real potential worth and possible speed gains and even the underlying aspect of what ralf has been trying to say. i'm thinking that there is a way to do this *without* making it builtin. to me that would be like having the best of both worlds. it won't bloat EU, as the mechanism could be "included" only when needed, but we could gain from it as much as if it were included. any thoughts on that? --Hawke'