Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
compile-time
- Page 1
Re: compile time vs run time polymorphism
Programming
Software Development
14 Years Ago
by java_programmer
… are two types of polymorphism 1.
compile
time
polymorphism 2. run
time
polymorphism.
Compile
time
polymorphism is functions and operators overloading.… Runtime
time
polymorphism is done using inheritance and …
Re: Compile-time printing?
Programming
Software Development
16 Years Ago
by Narue
…and how you intend to print it. At
compile
-
time
you can really only rely on compiler-specific methods… for outputting
compile
-
time
messages. You can get close with something like this…, of course. :icon_rolleyes: If you drop the
compile
-
time
output requirement and allow less than optimal construction of …
Compile time evaluation of the primality of a number
Programming
Software Development
15 Years Ago
by vijayan121
… DIVISOR = NUMBER - 1 > struct is_prime { //
compile
-
time
assertion that NUMBER >= 2 struct check { char check_it[…example of a
compile
-
time
if and a
compile
-
time
for loop, I've added these: [code]//
compile
-
time
if- general…<< NUMBER << '\n' ; } }; //
compile
-
time
loop // print all prime numbers in the range N to…
Compile-time printing?
Programming
Software Development
16 Years Ago
by Alex Edwards
… make a template algorithm that would be evaluated at
compile
time
and also print information. Unfortunately, because std::cout…... etc. Basically anything that cannot be resolved at
compile
time
due to its chance to vary will be unworkable.…compiler is capable of doing parsing and optimizations during
compile
-
time
, it can at least flag what it is …
Compile Time Assertions
Programming
Software Development
15 Years Ago
by Dave Sinkula
…;]search[/URL] to see whether "static" meant "
compile
-
time
" here (that poor keyword [I]static[/I], it's… desired outcome for what I have titled here as "
Compile
Time
Assertions". Anyways, I did a little digging to see…
Re: compile time vs run time polymorphism
Programming
Software Development
14 Years Ago
by new_programmer
There are two types of polymorphism 1.
compile
time
polymorphism 2. run
time
polymorphism.
Compile
time
polymorphism is functions and operators overloading. Runtime
time
polymorphism is done using inheritance and virtual functions.[Eg: function overriding]
compile time vs run time polymorphism
Programming
Software Development
14 Years Ago
by java..
how OOPS concept playing roles in terms of
compile
time
and run
time
polymorphism. how inheritance and encapsulation and polymorphism applied in real
time
application. when and where and how to decide this oop concept fit for this like java bean,interface,abstract,etc?
Re: Compile time error "undeclared identifier"for functions strcpy_s,strcat_s,_itoa_s
Programming
Software Development
16 Years Ago
by risa
… later it may give problem as suppressing warning will give
compile
time
errors for these functions as the newer version will remove… these functions....but its ok!! for
time
being the problem is solved.
Compile time error "undeclared identifier"for functions strcpy_s,strcat_s,_itoa_s
Programming
Software Development
16 Years Ago
by risa
… same file in visual studio 6.0 here it gives
compile
time
error as "undeclared identifier" which is correct as…
Re: Compile time error "undeclared identifier"for functions strcpy_s,strcat_s,_itoa_s
Programming
Software Development
16 Years Ago
by risa
[QUOTE=ivailosp;642554]#define strcpy_s strcpy :D[/QUOTE] .....thanks for this quick help..,,,, but both of these funtions have different parameters,,,strcpy_s has a additional parameter to strcpy which is the size of buffer,,,..hence #define strcpy_s strcpy gives
compile
time
error in Visual Studio 8 itself,,,,,so nw wht to do??
Re: Compile time error when trying to pass string to 'external' class.
Programming
Software Development
14 Years Ago
by Bladtman242
… it affect the final result (unlikely)? Will it matter at
compile
time
? perhaps take longer? Or does it only matter when considering…
C++11 Compile-time String Concatenation with constexpr
Programming
Software Development
10 Years Ago
by mike_2000_17
… are known at
compile
-
time
, and could thus be
compile
-
time
string literals (that…
compile
-
time
constants, the
compile
will evaluate the function (addition) at
compile
-
time
to produce a result which is itself a
compile
-
time
…; }; // Note, the following are all
compile
-
time
constants: constexpr literal_str_list hello = "Hello…
Re: C++11 Compile-time String Concatenation with constexpr
Programming
Software Development
10 Years Ago
by mike_2000_17
… also use this literal string list class to perform some
compile
-
time
integer to string conversions: static const char str_digits[] = "0123456789…
Re: C++11 Compile-time String Concatenation with constexpr
Programming
Software Development
10 Years Ago
by mike_2000_17
… that implementation. It's very impressive, but at the same
time
, I feel that it has too much stuff in it… is very nice), but it is also a very heavy
compile
-
time
mechanism to put in play. Doing fancy stuff like that…'t aim, and don't want to implement a full
compile
-
time
equivalent to `std::string`, as sprout did. If I wanted…
Re: C++11 Compile-time String Concatenation with constexpr
Programming
Software Development
10 Years Ago
by mike_2000_17
…, that motivates the use of
compile
-
time
arrays instead. To make a
compile
-
time
array of string literals, we need…arrays and it can be constructed and copied at
compile
-
time
, via `constexpr` constructors. Furthermore, we can …but again, everything must be done recursively, because
compile
-
time
calculations imply recursion as the only option). Where…
Re: C++11 Compile-time String Concatenation with constexpr
Programming
Software Development
10 Years Ago
by mike_2000_17
… to me, not a good tradeoff. **Conclusion**
Compile
-
time
string concatenation, under the current language limitations (C++… way that strings could be concatenated at
compile
-
time
is if the C++ language could allow… overhead. Nevertheless, for light-weight situations where
compile
-
time
string concatenation is required, these schemes could come…
Re: Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by Fbody
…; }; }; // this function will be generated, at
compile
-
time
, for the given type of animal. template <typename…substitutability) which is realized at
compile
-
time
and entails no run-
time
overhead and opens many optimization opportunities… means, friends are saying it is not
compile
time
polymorphism, It is method hiding. Your friends…
Must value be determined at compile-time?
Programming
Software Development
16 Years Ago
by srubys
… a value. The initialization value must be determinable at
compile
time
. [/quote] But if initialization value must indeed be …here the initialization value can’t be known at
compile
time
, since memory on the heap is only allocated at…the value of constant be determined at
compile
time
rather than at run
time
, while read only field can be determined…
Re: How to catch bad scoping at compile-time? Multidimensional iterator
Programming
Software Development
14 Years Ago
by mike_2000_17
… you for your answer. I was familiar with the
compile
-
time
assert from Alexandrescu (I am consulting his "Modern…are of course many more ways to catch errors at
compile
-
time
, but neither of them solves my problem. Basically …problem is not to do a
compile
-
time
assert, but to come up with a
compile
-
time
conditional that triggers the assert. …
Re: Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by mike_2000_17
…endl; }; }; // this function will be generated, at
compile
-
time
, for the given type of animal. template <typename…(substitutability) which is realized at
compile
-
time
and entails no run-
time
overhead and opens many optimization opportunities…method means, friends are saying it is not
compile
time
polymorphism, It is method hiding. Your friends…
Re: Must value be determined at compile-time?
Programming
Software Development
16 Years Ago
by LizR
… doesn’t actually point to a specific location ( at
compile
time
)? But couldn't then same argument also applied to,…is called. But we could still argue that at
compile
time
someValue is a holder of a integer shaped piece of…– is class ( not an instance of class ) created at
compile
time
, or at runtime? thank you[/QUOTE] The class template is…
Re: Must value be determined at compile-time?
Programming
Software Development
16 Years Ago
by srubys
…it doesn’t actually point to a specific location ( at
compile
time
)? But couldn't then same argument also applied to, say…someMethod() is called. But we could still argue that at
compile
time
someValue is a holder of a integer shaped piece of…BTW – is class ( not an instance of class ) created at
compile
time
, or at runtime? thank you
Re: Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by Zetlin
It is
compile
-
time
polymorphism because when code like this "Sring a = …class is that constructor declared the compiler figures out at
compile
-
time
which constructor to call. The bottom line is that method…call that method. And that method overloading is
compile
-
time
because it is at
compile
time
that the right method gets chosen depending on…
Re: Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by Zetlin
Overloading is
compile
-
time
polymorphism because it is during
compile
time
that the JVM figures out what method to …passed as the arguments the right method is chosen at
compile
time
public int add(int a, int b){} public …float b){} [/CODE] Thus overriding is run-
time
polymorphism because during run-
time
two or more objects of different types(super…
Re: Must value be determined at compile-time?
Programming
Software Development
16 Years Ago
by srubys
[QUOTE=ddanbe;771414]A class is a discription of an object which is created(instantiated) at runtime.[/QUOTE] Sorry about that. I know class is just a blueprint, what I meant was if static members and static methods are created at
compile
time
or at run
time
?
How to catch bad scoping at compile-time? Multidimensional iterator
Programming
Software Development
14 Years Ago
by mike_2000_17
… the compiler to catch illegal uses of the iterators at
compile
-
time
. In the example above: - trying to modify iter2 after iter3…I try to modify iter2). However, this is essentially a
compile
-
time
mistake and I would like to be able to catch… this at
compile
-
time
. Does anyone know a clever trick to accomplish this? …
Re: How to catch bad scoping at compile-time? Multidimensional iterator
Programming
Software Development
14 Years Ago
by alwaysLearning0
…main(int argc, char *args[]){ // This will give
compile
time
error, use it like traditional assert() STATIC_CHECK(false, MY_ERROR_MSG…); //this will generate
compile
time
error STATIC_CHECK(false, MY_ERROR_MSG); //example /* Following is…
Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by Muralidharan.E
…? Is that so how to give example for
compile
time
polymorphism in java? If i will override static… method means, friends are saying it is not
compile
time
polymorphism, It is method hiding. I have some …confusion with runtime polymorphism and
compile
time
polymorphism in java. I have refered some sites related…
Re: Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by Muralidharan.E
[QUOTE=Zetlin;1617628]Overloading is
compile
-
time
polymorphism because it is during
compile
time
that the JVM figures out what method to call by … run
time
), So by using object reference only we can call nonstatic methods. So how we can say that it is
compile
time
…
Re: Is it possible to do compile time polymorphism in Java?
Programming
Software Development
13 Years Ago
by mike_2000_17
… this is after the fact, because it is done at
compile
-
time
, so, once compiled, the code is not "polymorphic"… of static polymorphism. It is not because something occurs at
compile
-
time
that it doesn't occur. Open your mind, and see…? You have to see that if things are done at
compile
-
time
, they're still done. If polymorphism is realized at…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC