summaryrefslogtreecommitdiffhomepage
path: root/hi-in/d.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'hi-in/d.html.markdown')
-rw-r--r--hi-in/d.html.markdown12
1 files changed, 6 insertions, 6 deletions
diff --git a/hi-in/d.html.markdown b/hi-in/d.html.markdown
index 8809c87e..b410b7fd 100644
--- a/hi-in/d.html.markdown
+++ b/hi-in/d.html.markdown
@@ -6,7 +6,7 @@ contributors:
lang: hi-in
---
-```c
+```d
//क्या आ रहा है पता है ...
module hello;
@@ -27,7 +27,7 @@ D सक्रिय रूप से सुपर स्मार्ट लो
[आंद्रेई Alexandrescu](https://en.wikipedia.org/wiki/Andrei_Alexandrescu)।
जिस तरह की है कि सभी के साथ बाहर, चलो कुछ उदाहरणों पर गौर करते हैं!
-```c
+```d
import std.stdio;
void main() {
@@ -70,7 +70,7 @@ void main() {
मूल्य से कार्य करने के लिए पारित कर रहे हैं (यानी नकल) और वर्गों के संदर्भ द्वारा पारित कर रहे हैं। इसके अलावा,
हम प्रकारों और मानों दोनों पर करने के लिए टेम्पलेट का उपयोग कर सकते हैं!
-```c
+```d
// इधर, 'T' एक प्रकार पैरामीटर है। लगता है कि '<+T>' C++ / C/ Java से।
struct LinkedList(T) {
T data = null;
@@ -132,7 +132,7 @@ Classes की बात हो रही है , एक दूसरे के
के शब्दों के साथ पॉड संरचनाओं की वाक्य रचना (`structure.x = 7`) है
मनुष्य और सेटर तरीकों (`object.setX(7)`) !
-```c
+```d
// Consider a class parameterized on types 'T' & 'U'.
class MyClass(T, U) {
T _data;
@@ -206,7 +206,7 @@ void main() {
कार्यात्मक एल्गोरिदम ( नक्शा, फिल्टर , कम करने और मित्र हो सकते हैं)
अद्भुत `std.algorithm` मॉड्यूल में पाया!
-```c
+```d
import std.algorithm : map, filter, reduce;
import std.range : iota; // builds an end-exclusive range
@@ -234,7 +234,7 @@ UFCS के साथ, हम एक विधि के रूप में ए
मैं समानता चाहते । समानता की तरह कोई और? ज़रूर तुम करना। चलो कुछ करते हैं!
-```c
+```d
import std.stdio;
import std.parallelism : parallel;
import std.math : sqrt;