|
I have a set of compiled Delphi dcu files, without source. Is there a way to determine what types are defined inside that dcu?
Started by JosephStyons on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Press Ctrl+Space at the end, and the IDE will present a list of possible completion values.
That is somehow readable but not compilable, but if you only want to determine the types defined, this could: FooUnit.
|
|
I have just discovered the joy of bitflags. I have several questions related to "best-practices" regarding the use of bitflags in C. I learned everything from various examples I found on the web but still have questions.
In order to save space, I am using...
Answer Snippets (Read the full thread at stackoverflow):
Enumerations are defined correctly you should be able to pass them as arguments without a problem.
|
|
Given that each php file in our project contains a single class definition... any suggestions for determining what class was defined within the file?
I know I could just regex the file for class statements, but I'd prefer to do something that's more efficient...
Started by Allain Lalonde on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In PHP the sequence of tokens will be:
T_CLASS : 'class' keyword; T_WHITESPACE : space(s) after.
This returns an array of classes defined in the current.
Use PHP's function get_declared_classes().
|
Ask your Facebook Friends
|
This won't pass JSLint in strict mode:
"use strict"; (function (w) { w.alert(w); }(window));
The error--from jslint.com--looks like this:
Problem at line 4 character 3: 'window' is not defined.
}(window));
Implied global: window 4
Do I need to tell JSLint...
Started by Kent Brewster on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The space after the initial asterisk turns out to be important..
|
|
Could anyone explain me why:
function doAjax() { var xmlHttpReq = false; try { // Firefox, Opera 8.0+ and Safari xmlHttpReq = new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) ...
Started by Tom on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
'e' is already defined seems pretty clear to me:) you use variables and functions that are defined....
JSlint usually give a LOT of errors...
The other issues are just warnings that you are using things that need to be defined elsewhere.
|
|
Hello. I have a text and I need to take the content in a defined pattern. A content between MARK1 and MARK2 and content after MARK2 . However, those marks can repeat and I need to take all their ocurrences. In the example below:
text: "textA textB _MARK...
Started by fukumori on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Am I missing something ....
Likely you'll need to break it down into an initial expression and then a loop to perform a 2nd expression match against each iteration of the first match .
I don't think you'll be able to achieve this with a single expression .
|
|
I have created a user defined function to gain performance with queries containing 'WHERE col IN (...)' like this case:
SELECT myCol1, myCol2 FROM myTable WHERE myCol3 IN (100, 200, 300, ..., 4900, 5000);
The queries are generated from an web application...
Started by Joakim Backman on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
AS BEGIN -- Remove space, tab, linefeed, carrier return SET @CSV = REPLACE(@CSV, ' ', ''); SET.
|
How to stop |
|
Hi Everyone,
I'm trying to debug a problem with a perl application that calls some c programs to do text editing.
BATCH_JV_CSH_MAX is used to test the maximum value of an amount field. It currently indicates an error if the amount is over 99,999,999.9...
Started by Cathy Sullivan on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I think the macros are defined like.
So 5e0 is 5 x 10^0 == 5 x 1 == 5 .
It means an exponent of 0.
|
|
I'm building a module where there are a whole lot of diverse objects which need to be controlled by several variables.
If this were C, I would pass the objects a pointer to the variable / object I want them to watch, have the application change the variable...
Started by tbroberg on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Def __init.
>>> class Foo(object): ...
Adapting your code...
If, however, you referenced a list and appended to the list, the memory space won't change.
String object in a new memory space.
|